Skip to content
This repository has been archived by the owner on Jun 18, 2022. It is now read-only.

Commit

Permalink
Merge pull request #4 from DaryNodes/master
Browse files Browse the repository at this point in the history
Changes
  • Loading branch information
vachanmn123 authored Feb 22, 2022
2 parents 7a78693 + 807b04d commit c6f241e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 32 deletions.
31 changes: 0 additions & 31 deletions commands/moderation/ban.js

This file was deleted.

3 changes: 2 additions & 1 deletion commands/music/queue.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ module.exports = {
execute(message, args) {
const queue = message.client.distube.getQueue(message)
if (!queue) return message.channel.send(`There is nothing playing!`)
const q = queue.songs.map((song, i) => `${i === 0 ? "Playing:" : `${i}.`} ${song.name} - \`${song.formattedDuration}\``).join("\n")
let q = queue.songs.map((song, i) => `${i === 0 ? "Playing:" : `${i}.`} ${song.name} - \`${song.formattedDuration}\``).join("\n")
if (q.length >= 1020) q = `${q.slice(0, 1020)}...`
const embed = new MessageEmbed()
.setColor("#101010")
.setTitle("Queue")
Expand Down
1 change: 1 addition & 0 deletions commands/music/repeat.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ module.exports = {
const queue = client.distube.getQueue(message)
if (!queue) return message.channel.send(`There is nothing playing!`)
let mode = null
if (!args[0]) return await message.reply("Please use the command properly, use the help command");
switch (args[0]) {
case "off":
mode = 0
Expand Down

0 comments on commit c6f241e

Please sign in to comment.