diff options
| author | 8cy <[email protected]> | 2020-04-11 20:57:47 -0700 |
|---|---|---|
| committer | 8cy <[email protected]> | 2020-04-11 20:57:47 -0700 |
| commit | 6295d78afbfee11441dbd425cea6636e38049e86 (patch) | |
| tree | 83a8351a6aaa70e9720fe14eb0062e2824b86db9 /commands/utility | |
| parent | fix server command, v2.1.2 (diff) | |
| download | s5nical-6295d78afbfee11441dbd425cea6636e38049e86.tar.xz s5nical-6295d78afbfee11441dbd425cea6636e38049e86.zip | |
add sharding + help stuff, v3.0.0
- add sharding
- add examples
- change up command aliases
- formatting
Diffstat (limited to 'commands/utility')
| -rw-r--r-- | commands/utility/botstatus.js | 7 | ||||
| -rw-r--r-- | commands/utility/btc.js | 5 | ||||
| -rw-r--r-- | commands/utility/btcchange.js | 6 | ||||
| -rw-r--r-- | commands/utility/clear.js | 9 | ||||
| -rw-r--r-- | commands/utility/membercount.js | 8 | ||||
| -rw-r--r-- | commands/utility/reboot.js | 41 | ||||
| -rw-r--r-- | commands/utility/server.js | 18 | ||||
| -rw-r--r-- | commands/utility/uptime.js | 5 |
8 files changed, 53 insertions, 46 deletions
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) { |