summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author8cy <[email protected]>2020-04-11 20:57:47 -0700
committer8cy <[email protected]>2020-04-11 20:57:47 -0700
commit6295d78afbfee11441dbd425cea6636e38049e86 (patch)
tree83a8351a6aaa70e9720fe14eb0062e2824b86db9
parentfix server command, v2.1.2 (diff)
downloads5nical-6295d78afbfee11441dbd425cea6636e38049e86.tar.xz
s5nical-6295d78afbfee11441dbd425cea6636e38049e86.zip
add sharding + help stuff, v3.0.0
- add sharding - add examples - change up command aliases - formatting
-rw-r--r--app.js67
-rw-r--r--bot.js70
-rw-r--r--commands/fun/8ball.js3
-rw-r--r--commands/fun/dm.js14
-rw-r--r--commands/fun/emoji.js3
-rw-r--r--commands/fun/gay.js12
-rw-r--r--commands/fun/quote.js20
-rw-r--r--commands/fun/respect.js2
-rw-r--r--commands/fun/say.js5
-rw-r--r--commands/utility/botstatus.js7
-rw-r--r--commands/utility/btc.js5
-rw-r--r--commands/utility/btcchange.js6
-rw-r--r--commands/utility/clear.js9
-rw-r--r--commands/utility/membercount.js8
-rw-r--r--commands/utility/reboot.js41
-rw-r--r--commands/utility/server.js18
-rw-r--r--commands/utility/uptime.js5
-rw-r--r--commands/voice/abee.js1
-rw-r--r--commands/voice/fart.js3
-rw-r--r--commands/voice/itemshop.js3
-rw-r--r--commands/voice/join.js4
-rw-r--r--commands/voice/leave.js3
-rw-r--r--commands/voice/loop.js4
-rw-r--r--commands/voice/moan.js3
-rw-r--r--commands/voice/pause.js3
-rw-r--r--commands/voice/play.js5
-rw-r--r--commands/voice/psycho.js1
-rw-r--r--commands/voice/queue.js22
-rw-r--r--commands/voice/remove.js4
-rw-r--r--commands/voice/resume.js3
-rw-r--r--commands/voice/shuffle.js3
-rw-r--r--commands/voice/skip.js5
-rw-r--r--commands/voice/skipall.js14
-rw-r--r--commands/voice/skipto.js3
-rw-r--r--commands/voice/squeak.js3
-rw-r--r--commands/voice/volume.js6
-rw-r--r--commands/voice/wahoo.js3
37 files changed, 249 insertions, 142 deletions
diff --git a/app.js b/app.js
index c3990c4..465b954 100644
--- a/app.js
+++ b/app.js
@@ -1,65 +1,6 @@
+const { ShardingManager } = require('discord.js');
const config = require('./config.json');
-const { CommandoClient } = require('discord.js-commando');
-const path = require('path');
-const { Structures } = require('discord.js');
-Structures.extend('Guild', Guild => {
- class MusicGuild extends Guild {
- constructor(client, data) {
- super(client, data);
- this.musicData = {
- queue: [],
- isPlaying: false,
- volume: 1,
- songDispatcher: null
- };
- }
- }
- return MusicGuild;
-});
+const manager = new ShardingManager('./bot.js', { token: config['secret'] });
-const client = new CommandoClient({
- commandPrefix: 's5n!',
- owner: '217348698294714370'
-});
-
-client.registry
- .registerDefaultTypes()
- .registerGroups([
- ['fun', 'fun command group'],
- ['moderation', 'moderation command group'],
- ['utility', 'utility command group'],
- ['voice', 'voice command group']
- ])
- .registerDefaultGroups()
- .registerDefaultCommands({
- help: true
- })
- .registerCommandsIn(path.join(__dirname, 'commands'));
-
-client.once('ready', () => {
- console.log(`Started bot: ${client.user.tag} (ID: ${client.user.id})\nCurrently running on ${client.guilds.cache.size} server(s).`);
- client.user.setActivity('psycho~ uwu', {
- type: 'LISTENING'
- });
- client.channels.cache.get('600773421525237781').send('bot started up');
-});
-
-client.on('error', console.error);
-
-client.on('message', async msg => {
- var msgContent = msg.content.toLowerCase();
- function prefixCheck() {
- if (msgContent.startsWith('s5n!')) {
- return true;
- }
- }
- if (prefixCheck()) {
- console.log(msg.member.user.tag, 'says', msgContent, 'in #' + msg.channel.name);
- }
-
- if (msg.mentions.everyone) {
- msg.react(':ArisaPing:695887537390223402');
- }
-});
-
-client.login(config['secret']); \ No newline at end of file
+manager.spawn();
+manager.on('shardCreate', shard => console.log(`Launched shard ${shard.id}`)); \ No newline at end of file
diff --git a/bot.js b/bot.js
new file mode 100644
index 0000000..c587677
--- /dev/null
+++ b/bot.js
@@ -0,0 +1,70 @@
+const config = require('./config.json');
+const { CommandoClient } = require('discord.js-commando');
+const path = require('path');
+const { Structures } = require('discord.js');
+Structures.extend('Guild', Guild => {
+ class MusicGuild extends Guild {
+ constructor(client, data) {
+ super(client, data);
+ this.musicData = {
+ queue: [],
+ isPlaying: false,
+ volume: 1,
+ songDispatcher: null
+ };
+ }
+ }
+ return MusicGuild;
+});
+
+const client = new CommandoClient({
+ commandPrefix: 's5n!',
+ owner: '217348698294714370'
+});
+
+client.registry
+ .registerDefaultTypes()
+ .registerGroups([
+ ['fun', 'fun command group'],
+ ['moderation', 'moderation command group'],
+ ['utility', 'utility command group'],
+ ['voice', 'voice command group']
+ ])
+ .registerDefaultGroups()
+ .registerDefaultCommands({
+ help: true
+ })
+ .registerCommandsIn(path.join(__dirname, 'commands'));
+
+client.once('ready', () => {
+ console.log(`Started bot: ${client.user.tag} (ID: ${client.user.id})\nCurrently running on ${client.guilds.cache.size} server(s).`);
+ client.user.setActivity('psycho~ uwu', {
+ type: 'LISTENING'
+ });
+ //client.channels.cache.get('600773421525237781').send('bot started up');
+});
+
+client.on('error', console.error);
+client.on('debug', console.debug);
+
+client.on('message', async msg => {
+ var msgContent = msg.content.toLowerCase();
+ function prefixCheck() {
+ if (msgContent.startsWith('s5n!')) {
+ return true;
+ }
+ }
+ if (prefixCheck()) {
+ if (msg.channel.type == 'dm') {
+ console.log(msg.author.tag, 'says', msgContent, 'in a dm');
+ } else {
+ console.log(msg.member.user.tag, 'says', msgContent, 'in #' + msg.channel.name);
+ }
+ }
+
+ if (msg.mentions.everyone) {
+ msg.react(':ArisaPing:695887537390223402');
+ }
+});
+
+client.login(config['secret']); \ No newline at end of file
diff --git a/commands/fun/8ball.js b/commands/fun/8ball.js
index c5702f1..04aa8e8 100644
--- a/commands/fun/8ball.js
+++ b/commands/fun/8ball.js
@@ -12,7 +12,8 @@ module.exports = class EightBallFun extends Command {
throttling: {
usages: 5,
duration: 30
- }
+ },
+ examples: ['s5n!8ball', 's5n!8b']
});
}
diff --git a/commands/fun/dm.js b/commands/fun/dm.js
index 472af1e..67bac7d 100644
--- a/commands/fun/dm.js
+++ b/commands/fun/dm.js
@@ -5,7 +5,12 @@ module.exports = class DMFun extends Command {
constructor(client) {
super(client, {
name: 'dm',
- aliases: ['directmessage', 'direct-message'],
+ aliases: [
+ 'directmessage',
+ 'directmsg',
+ 'direct-message',
+ 'direct-msg'
+ ],
group: 'fun',
memberName: 'dm',
description: 'dm someone',
@@ -16,6 +21,13 @@ module.exports = class DMFun extends Command {
prompt: 'what would u like to send',
type: 'string'
}
+ ],
+ examples: [
+ 's5n!dm @sin#1337 hi',
+ 's5n!directmessage @sin#1337 hey',
+ 's5n!directmsg @sin#1337 hello',
+ 's5n!direct-message @sin#1337 yo',
+ 's5n!direct-msg @sin#1337 aye',
]
});
}
diff --git a/commands/fun/emoji.js b/commands/fun/emoji.js
index ab3e47c..027cd55 100644
--- a/commands/fun/emoji.js
+++ b/commands/fun/emoji.js
@@ -12,7 +12,8 @@ module.exports = class EmojiFun extends Command {
throttling: {
usages: 5,
duration: 30
- }
+ },
+ examples: ['s5n!emoji', 's5n!moji']
});
}
run(msg) {
diff --git a/commands/fun/gay.js b/commands/fun/gay.js
index 1aa310a..526be74 100644
--- a/commands/fun/gay.js
+++ b/commands/fun/gay.js
@@ -4,10 +4,20 @@ module.exports = class GayFun extends Command {
constructor(client) {
super(client, {
name: 'gay',
- aliases: ['gayamount', 'gayrange', 'gayrate'],
+ aliases: [
+ 'gayamount',
+ 'gayrange',
+ 'gayrate'
+ ],
group: 'fun',
memberName: 'gay',
description: 'tells you your gay-ness amount',
+ examples: [
+ 's5n!gay',
+ 's5n!gayamount',
+ 's5n!gayrange',
+ 's5n!gayrate'
+ ]
});
}
run(msg) {
diff --git a/commands/fun/quote.js b/commands/fun/quote.js
index 6ad0f89..2e0d2c9 100644
--- a/commands/fun/quote.js
+++ b/commands/fun/quote.js
@@ -13,17 +13,25 @@ module.exports = class QuoteFun extends Command {
throttling: {
usages: 5,
duration: 30
- }
+ },
+ examples: ['s5n!quote', 's5n!quote finn'],
+ args: [
+ {
+ key: 'atCharacter',
+ prompt: 'would u like a specific character? (finn, jake, ice king, no)',
+ type: 'string'
+ }
+ ]
});
}
- run(msg, args) {
- if (!args.length) {
+ run(msg, { atCharacter }) {
+ if (!atCharacter || atCharacter == 'no' || atCharacter == 'n') {
msg.reply(atquotes.getQuote() + ' ' + emoji.random());
- } else if (args[0] == 'finn') {
+ } else if (atCharacter == 'finn' || atCharacter == 'f') {
msg.reply(atquotes.getFinnQuote() + ' ' + emoji.random());
- } else if (args[0] == 'jake') {
+ } else if (atCharacter == 'jake' || atCharacter == 'j') {
msg.reply(atquotes.getJakeQuote() + ' ' + emoji.random());
- } else if (args[0] == 'ice-king') {
+ } else if (atCharacter == 'ice king' || atCharacter == 'ik') {
msg.reply(atquotes.getIceKingQuote() + ' ' + emoji.random());
}
}
diff --git a/commands/fun/respect.js b/commands/fun/respect.js
index 75d9707..863c9b0 100644
--- a/commands/fun/respect.js
+++ b/commands/fun/respect.js
@@ -8,6 +8,8 @@ module.exports = class RespectFun extends Command {
group: 'fun',
memberName: 'respect',
description: 'press f to pay respects',
+ examples: ['s5n!respect', 's5n!f'],
+ guildOnly: true
});
}
run(msg) {
diff --git a/commands/fun/say.js b/commands/fun/say.js
index cb344c9..703b95f 100644
--- a/commands/fun/say.js
+++ b/commands/fun/say.js
@@ -14,13 +14,16 @@ module.exports = class SayFun extends Command {
prompt: 'u cant send an empty msg lol',
type: 'string'
}
- ]
+ ],
+ examples: ['s5n!say hi']
});
}
run(msg, { say }) {
if (msg.member.hasPermission('KICK_MEMBERS')) {
msg.channel.send(say);
msg.delete();
+ } else {
+ msg.reply('insufficent perms homie');
}
}
}; \ No newline at end of file
diff --git a/commands/utility/botstatus.js b/commands/utility/botstatus.js
index abea7c2..65825bb 100644
--- a/commands/utility/botstatus.js
+++ b/commands/utility/botstatus.js
@@ -25,6 +25,13 @@ module.exports = class BotStatusUtility extends Command {
prompt: 'what would u like the status type to be?',
type: 'string'
}
+ ],
+ guildOnly: true,
+ examples: [
+ 's5n!botstatus type watching',
+ 's5n!status t w',
+ 's5n!status message youtube',
+ 's5n!bs m lol'
]
});
}
diff --git a/commands/utility/btc.js b/commands/utility/btc.js
index caf4e22..6288c50 100644
--- a/commands/utility/btc.js
+++ b/commands/utility/btc.js
@@ -16,6 +16,11 @@ module.exports = class BTCUtility extends Command {
prompt: 'what currency u wanna see it in? (usd, aud, cad)',
type: 'string'
}
+ ],
+ examples: [
+ 's5n!bitcoin aud',
+ 's5n!crypto cad',
+ 's5n!btc usd'
]
});
}
diff --git a/commands/utility/btcchange.js b/commands/utility/btcchange.js
index 3abcf7b..a113d2d 100644
--- a/commands/utility/btcchange.js
+++ b/commands/utility/btcchange.js
@@ -16,6 +16,12 @@ module.exports = class BTCChangeUtility extends Command {
prompt: 'what time range do you want to check the fluction amount in? (day, hour, week)',
type: 'string'
}
+ ],
+ examples: [
+ 's5n!btcchange day',
+ 's5n!bitcoinchange hour',
+ 's5n!cryptochange week',
+ 's5n!btcc day'
]
});
}
diff --git a/commands/utility/clear.js b/commands/utility/clear.js
index 0abcdac..c64c092 100644
--- a/commands/utility/clear.js
+++ b/commands/utility/clear.js
@@ -5,7 +5,7 @@ module.exports = class ClearUtility extends Command {
constructor(client) {
super(client, {
name: 'clear',
- aliases: ['delete', 'del', 'c'],
+ aliases: ['delete', 'del', 'c', 'd'],
group: 'utility',
memberName: 'clear',
description: 'clear an ammount of messages',
@@ -16,6 +16,13 @@ module.exports = class ClearUtility extends Command {
prompt: 'how many messages would u like to delete?',
type: 'integer'
}
+ ],
+ examples: [
+ 's5n!clear 23',
+ 's5n!delete 75',
+ 's5n!del 32',
+ 's5n!c 45',
+ 's5n!d 84'
]
});
}
diff --git a/commands/utility/membercount.js b/commands/utility/membercount.js
index 51b4067..d799c68 100644
--- a/commands/utility/membercount.js
+++ b/commands/utility/membercount.js
@@ -13,7 +13,13 @@ module.exports = class MemberCountUtility extends Command {
usages: 5,
duration: 30
},
- guildOnly: true
+ guildOnly: true,
+ examples: [
+ 's5n!membercount',
+ 's5n!memberc',
+ 's5n!mcount',
+ 's5n!mc'
+ ]
});
}
run(msg) {
diff --git a/commands/utility/reboot.js b/commands/utility/reboot.js
deleted file mode 100644
index 2e104f6..0000000
--- a/commands/utility/reboot.js
+++ /dev/null
@@ -1,41 +0,0 @@
-const { Command } = require('discord.js-commando');
-const emoji = require('emoji-random');
-
-module.exports = class RebootUtility extends Command {
- constructor(client) {
- super(client, {
- name: 'reboot',
- aliases: ['r', 're'],
- group: 'utility',
- memberName: 'reboot',
- description: 'reboots a module(s)',
- guildOnly: true,
- args: [
- {
- key: 'module',
- prompt: 'which module(s) would you like to reboot?',
- type: 'integer'
- }
- ]
- });
- }
- run(msg, { module }) {
- if (module == 'voice' || module == 'v') {
- if (!msg.member.voice.channel) {
- msg.reply('you need to be in a voice channel to reboot the voice module');
- } else if (!msg.guild.voice) {
- msg.member.voice.channel.join();
- msg.member.voice.channel.leave();
- msg.reply('voice module reboot finished lol ' + emoji.random());
- } else if (msg.guild.voice) {
- msg.member.voice.channel.leave();
- msg.member.voice.channel.join();
- msg.reply('voice module reboot finished lol ' + emoji.random());
- }
- } else if (module == 'commands' || module == 'commands' || module == 'cmds' || module == 'cmd' || module == 'c') {
- msg.reply('commands module reboot finished lol ' + emoji.random());
- } else if (!args.length) {
- msg.reply('no module(s) specified');
- }
- }
-}; \ No newline at end of file
diff --git a/commands/utility/server.js b/commands/utility/server.js
index 11b82bb..5f395fd 100644
--- a/commands/utility/server.js
+++ b/commands/utility/server.js
@@ -5,7 +5,13 @@ module.exports = class ServerUtility extends Command {
constructor(client) {
super(client, {
name: 'server',
- aliases: ['serverinfo', 'si'],
+ aliases: [
+ 'serverinfo',
+ 'si',
+ 'server-info',
+ 'serverstats',
+ 'server-stats'
+ ],
group: 'utility',
memberName: 'server',
description: 'gives u info about the server',
@@ -13,7 +19,15 @@ module.exports = class ServerUtility extends Command {
usages: 2,
duration: 60
},
- guildOnly: true
+ guildOnly: true,
+ examples: [
+ 's5n!server',
+ 's5n!serverinfo',
+ 's5n!server-info',
+ 's5n!serverstats',
+ 's5n!server-stats',
+ 's5n!si'
+ ]
});
}
run(msg) {
diff --git a/commands/utility/uptime.js b/commands/utility/uptime.js
index 93be578..0c76754 100644
--- a/commands/utility/uptime.js
+++ b/commands/utility/uptime.js
@@ -15,7 +15,10 @@ module.exports = class UptimeUtility extends Command {
usages: 5,
duration: 30
},
- guildOnly: true
+ examples: [
+ 's5n!uptime',
+ 's5n!ut'
+ ]
});
}
run(msg) {
diff --git a/commands/voice/abee.js b/commands/voice/abee.js
index 014ba74..a683b08 100644
--- a/commands/voice/abee.js
+++ b/commands/voice/abee.js
@@ -16,6 +16,7 @@ module.exports = class ABeeVoice extends Command {
description: 'a bee :D 🐝',
guildOnly: true,
clientPermissions: ['SPEAK', 'CONNECT'],
+ examples: ['s5n!abee', 's5n!a-bee']
});
}
async run(msg, { query }) {
diff --git a/commands/voice/fart.js b/commands/voice/fart.js
index f87ad84..dc17517 100644
--- a/commands/voice/fart.js
+++ b/commands/voice/fart.js
@@ -8,7 +8,8 @@ module.exports = class FartVoice extends Command {
group: 'voice',
memberName: 'fart',
description: 'gives you a random fart',
- guildOnly: true
+ guildOnly: true,
+ examples: ['s5n!fart']
});
}
async run(msg) {
diff --git a/commands/voice/itemshop.js b/commands/voice/itemshop.js
index 874bf7c..7a20b6a 100644
--- a/commands/voice/itemshop.js
+++ b/commands/voice/itemshop.js
@@ -10,12 +10,13 @@ module.exports = class ABeeVoice extends Command {
constructor(client) {
super(client, {
name: 'itemshop',
- aliases: ['is'],
+ aliases: ['item-shop'],
group: 'voice',
memberName: 'itemshop',
description: 'use code frozen in the itemshop',
guildOnly: true,
clientPermissions: ['SPEAK', 'CONNECT'],
+ examples: ['s5n!itemshop', 's5n!item-shop']
});
}
async run(msg, { query }) {
diff --git a/commands/voice/join.js b/commands/voice/join.js
index fa742c3..9ee6f9d 100644
--- a/commands/voice/join.js
+++ b/commands/voice/join.js
@@ -5,7 +5,6 @@ module.exports = class JoinVoice extends Command {
constructor(client) {
super(client, {
name: 'join',
- aliases: ['j'],
group: 'voice',
memberName: 'join',
description: 'joins your voice channel',
@@ -13,7 +12,8 @@ module.exports = class JoinVoice extends Command {
usages: 2,
duration: 5
},
- guildOnly: true
+ guildOnly: true,
+ examples: ['s5n!join']
});
}
run(msg) {
diff --git a/commands/voice/leave.js b/commands/voice/leave.js
index 1621336..4779e9f 100644
--- a/commands/voice/leave.js
+++ b/commands/voice/leave.js
@@ -9,7 +9,8 @@ module.exports = class LeaveVoice extends Command {
group: 'voice',
memberName: 'leave',
description: 'stops voice channel if any playing',
- guildOnly: true
+ guildOnly: true,
+ examples: ['s5n!leave', 's5n!end', 's5n!stop']
});
}
run(msg) {
diff --git a/commands/voice/loop.js b/commands/voice/loop.js
index 967130c..01bf48d 100644
--- a/commands/voice/loop.js
+++ b/commands/voice/loop.js
@@ -5,10 +5,12 @@ module.exports = class LoopVoice extends Command {
constructor(client) {
super(client, {
name: 'loop',
+ aliases: ['repeat'],
group: 'voice',
memberName: 'loop',
description: 'loops currently playing audio',
- guildOnly: true
+ guildOnly: true,
+ examples: ['s5n!loop', 's5n!repeat']
});
}
run(msg) {
diff --git a/commands/voice/moan.js b/commands/voice/moan.js
index a28480f..fbfb191 100644
--- a/commands/voice/moan.js
+++ b/commands/voice/moan.js
@@ -9,7 +9,8 @@ module.exports = class MoanVoice extends Command {
group: 'voice',
memberName: 'moan',
description: 'uhhhh',
- guildOnly: true
+ guildOnly: true,
+ examples: ['s5n!moan', 's5n!uhhhh']
});
}
async run(msg) {
diff --git a/commands/voice/pause.js b/commands/voice/pause.js
index 1dd5a17..76324c5 100644
--- a/commands/voice/pause.js
+++ b/commands/voice/pause.js
@@ -8,7 +8,8 @@ module.exports = class PauseVoice extends Command {
group: 'voice',
memberName: 'pause',
description: 'pauses music if there is any playing',
- guildOnly: true
+ guildOnly: true,
+ examples: ['s5n!pause']
});
}
run(msg) {
diff --git a/commands/voice/play.js b/commands/voice/play.js
index 28fbae8..68e41a8 100644
--- a/commands/voice/play.js
+++ b/commands/voice/play.js
@@ -10,7 +10,6 @@ module.exports = class PlayVoice extends Command {
constructor(client) {
super(client, {
name: 'play',
- aliases: ['p'],
group: 'voice',
memberName: 'play',
description: 'play a youtube video',
@@ -25,6 +24,10 @@ module.exports = class PlayVoice extends Command {
return query.length > 0 && query.length < 200;
}
}
+ ],
+ examples: [
+ 's5n!play https://www.youtube.com/watch?v=dQw4w9WgXcQ',
+ 's5n!play despacito'
]
});
}
diff --git a/commands/voice/psycho.js b/commands/voice/psycho.js
index 905a7b7..9676b27 100644
--- a/commands/voice/psycho.js
+++ b/commands/voice/psycho.js
@@ -15,6 +15,7 @@ module.exports = class PsychoVoice extends Command {
description: 'plays the psycho by mase',
guildOnly: true,
clientPermissions: ['SPEAK', 'CONNECT'],
+ examples: ['s5n!psycho']
});
}
async run(msg, { query }) {
diff --git a/commands/voice/queue.js b/commands/voice/queue.js
index 349380d..f9dff73 100644
--- a/commands/voice/queue.js
+++ b/commands/voice/queue.js
@@ -6,11 +6,29 @@ module.exports = class QueueVoice extends Command {
constructor(client) {
super(client, {
name: 'queue',
- aliases: ['q', 'song-list', 'next-songs'],
+ aliases: [
+ 'q',
+ 'song-list',
+ 'next-songs',
+ 'songlist',
+ 'nextsongs',
+ 'nextsong',
+ 'next-song'
+ ],
group: 'voice',
memberName: 'queue',
description: 'display song queue',
- guildOnly: true
+ guildOnly: true,
+ examples: [
+ 's5n!queue',
+ 's5n!q',
+ 's5n!songlist',
+ 's5n!song-list',
+ 's5n!nextsong',
+ 's5n!next-song',
+ 's5n!nextsongs',
+ 's5n!next-songs'
+ ]
});
}
run(msg) {
diff --git a/commands/voice/remove.js b/commands/voice/remove.js
index 43650de..370dd51 100644
--- a/commands/voice/remove.js
+++ b/commands/voice/remove.js
@@ -5,7 +5,6 @@ module.exports = class RemoveVoice extends Command {
constructor(client) {
super(client, {
name: 'remove',
- aliases: ['rem'],
group: 'voice',
memberName: 'remove',
description: 'removes a song from the queue',
@@ -16,7 +15,8 @@ module.exports = class RemoveVoice extends Command {
prompt: 'what song u want to remove from q?',
type: 'integer'
}
- ]
+ ],
+ examples: ['s5n!remove 2']
});
}
run(msg, { songNumber }) {
diff --git a/commands/voice/resume.js b/commands/voice/resume.js
index 74b555b..1966d3a 100644
--- a/commands/voice/resume.js
+++ b/commands/voice/resume.js
@@ -8,7 +8,8 @@ module.exports = class ResumeVoice extends Command {
group: 'voice',
memberName: 'resume',
description: 'resumes music if there is any stopped',
- guildOnly: true
+ guildOnly: true,
+ examples: ['s5n!resume']
});
}
run(msg) {
diff --git a/commands/voice/shuffle.js b/commands/voice/shuffle.js
index 2cf9fe2..0f9210c 100644
--- a/commands/voice/shuffle.js
+++ b/commands/voice/shuffle.js
@@ -9,7 +9,8 @@ module.exports = class ShuffleVoice extends Command {
group: 'voice',
memberName: 'shuffle',
description: 'shuffle the queue',
- guildOnly: true
+ guildOnly: true,
+ examples: ['s5n!shuffle']
});
}
run(msg) {
diff --git a/commands/voice/skip.js b/commands/voice/skip.js
index 5c5611b..075cc06 100644
--- a/commands/voice/skip.js
+++ b/commands/voice/skip.js
@@ -7,8 +7,9 @@ module.exports = class SkipVoice extends Command {
name: 'skip',
group: 'voice',
memberName: 'skip',
- description: 'skip 1 song in the queue',
- guildOnly: true
+ description: 'skip 1 song ahead in the queue',
+ guildOnly: true,
+ examples: ['s5n!skip']
});
}
run(msg) {
diff --git a/commands/voice/skipall.js b/commands/voice/skipall.js
index 202845d..65d5490 100644
--- a/commands/voice/skipall.js
+++ b/commands/voice/skipall.js
@@ -5,10 +5,22 @@ module.exports = class SkipAllVoice extends Command {
constructor(client) {
super(client, {
name: 'skipall',
+ aliases: [
+ 'endqueue',
+ 'endq',
+ 'skipqueue',
+ 'skipq'
+ ],
group: 'voice',
memberName: 'skipall',
description: 'skip all songs in the queue',
- guildOnly: true
+ guildOnly: true,
+ examples: [
+ 's5n!endqueue',
+ 's5n!endq',
+ 's5n!skipqueue',
+ 's5n!skipq'
+ ]
});
}
run(msg) {
diff --git a/commands/voice/skipto.js b/commands/voice/skipto.js
index 78bf5df..86bff00 100644
--- a/commands/voice/skipto.js
+++ b/commands/voice/skipto.js
@@ -13,7 +13,8 @@ module.exports = class SkipToVoice extends Command {
key: 'songNumber',
prompt: 'what song u want to skip 2 in da q ???',
type: 'integer'
- }]
+ }],
+ examples: ['s5n!skipto 5']
});
}
run(msg, { songNumber }) {
diff --git a/commands/voice/squeak.js b/commands/voice/squeak.js
index e9b54ab..04b664f 100644
--- a/commands/voice/squeak.js
+++ b/commands/voice/squeak.js
@@ -8,7 +8,8 @@ module.exports = class SqueakVoice extends Command {
group: 'voice',
memberName: 'squeak',
description: 'squeak',
- guildOnly: true
+ guildOnly: true,
+ examples: ['s5n!queak']
});
}
async run(msg) {
diff --git a/commands/voice/volume.js b/commands/voice/volume.js
index bebcf61..b8090ff 100644
--- a/commands/voice/volume.js
+++ b/commands/voice/volume.js
@@ -5,7 +5,7 @@ module.exports = class VolumeVoice extends Command {
constructor(client) {
super(client, {
name: 'volume',
- aliases: ['vol', 'v'],
+ aliases: ['vol'],
group: 'voice',
memberName: 'volume',
description: 'changes volume of audio if playing',
@@ -17,6 +17,10 @@ module.exports = class VolumeVoice extends Command {
type: 'integer',
validate: wantedVol => wantedVol >= 1 && wantedVol <= 200
}
+ ],
+ examples: [
+ 's5n!volume 20',
+ 's5n!vol 50'
]
});
}
diff --git a/commands/voice/wahoo.js b/commands/voice/wahoo.js
index 6a478c0..d815b8d 100644
--- a/commands/voice/wahoo.js
+++ b/commands/voice/wahoo.js
@@ -9,7 +9,8 @@ module.exports = class WahooVoice extends Command {
group: 'voice',
memberName: 'wahoo',
description: 'wahoo',
- guildOnly: true
+ guildOnly: true,
+ examples: ['s5n!wahoo', 's5n!mario']
});
}
async run(msg) {