diff options
Diffstat (limited to 'src/commands/bot')
| -rw-r--r-- | src/commands/bot/clientid.ts | 4 | ||||
| -rw-r--r-- | src/commands/bot/servercount.ts | 4 | ||||
| -rw-r--r-- | src/commands/bot/support.ts | 23 | ||||
| -rw-r--r-- | src/commands/bot/uptime.ts | 4 | ||||
| -rw-r--r-- | src/commands/bot/version.ts | 4 |
5 files changed, 31 insertions, 8 deletions
diff --git a/src/commands/bot/clientid.ts b/src/commands/bot/clientid.ts index ea89891..65040bf 100644 --- a/src/commands/bot/clientid.ts +++ b/src/commands/bot/clientid.ts @@ -20,14 +20,14 @@ module.exports = class ClientIDBot extends Command { }); } run(msg: CommandoMessage) { - msg.channel.send('Please wait...').then(m => { + msg.say('Please wait...').then(m => { m.edit(`** **`); let emb = new MessageEmbed() .setDescription('uwufier\'s client ID is **699473263998271489**. ' + emoji.random()) .setColor(0xFFCC4D) - msg.channel.send(emb); + msg.say(emb); }); } };
\ No newline at end of file diff --git a/src/commands/bot/servercount.ts b/src/commands/bot/servercount.ts index 49fcc5c..84fdaae 100644 --- a/src/commands/bot/servercount.ts +++ b/src/commands/bot/servercount.ts @@ -16,14 +16,14 @@ module.exports = class ServerCountServer extends Command { }); } run(msg: CommandoMessage) { - msg.channel.send('Please wait...').then(m => { + msg.say('Please wait...').then(m => { m.edit(`** **`); let emb = new MessageEmbed() .setDescription(`Currently running on ${this.client.guilds.cache.size} server(s). ` + emoji.random()) .setColor(0xFFCC4D) - msg.channel.send(emb); + msg.say(emb); }); } };
\ No newline at end of file diff --git a/src/commands/bot/support.ts b/src/commands/bot/support.ts new file mode 100644 index 0000000..c022de7 --- /dev/null +++ b/src/commands/bot/support.ts @@ -0,0 +1,23 @@ +import { Command, CommandoMessage } from 'discord.js-commando'; +import emoji from 'emoji-random'; + +module.exports = class SupportBot extends Command { + constructor(client) { + super(client, { + name: 'support', + group: 'bot', + memberName: 'support', + description: 'Gives you the bot\'s support server link.', + examples: ['uwu!support'], + userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], + clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], + throttling: { + usages: 5, + duration: 30 + }, + }); + } + run(msg: CommandoMessage) { + msg.reply('For support, please join; https://crack.cf/uwufier-support. ' + emoji.random()) + } +};
\ No newline at end of file diff --git a/src/commands/bot/uptime.ts b/src/commands/bot/uptime.ts index 3280d9e..9128ab7 100644 --- a/src/commands/bot/uptime.ts +++ b/src/commands/bot/uptime.ts @@ -26,14 +26,14 @@ export default class UptimeBot extends Command { } run(msg: CommandoMessage) { const duration = _duration(this.client.uptime).format(" D [days], H [hrs], m [mins], s [secs]"); - msg.channel.send('Please wait...').then(m => { + msg.say('Please wait...').then(m => { m.edit(`** **`); let emb = new MessageEmbed() .setDescription('<@699473263998271489> has been up for ' + duration + '. ' + emoji.random()) .setColor(0xFFCC4D) - msg.channel.send(emb); + msg.say(emb); }); } }
\ No newline at end of file diff --git a/src/commands/bot/version.ts b/src/commands/bot/version.ts index 7d2c71b..01119dc 100644 --- a/src/commands/bot/version.ts +++ b/src/commands/bot/version.ts @@ -22,14 +22,14 @@ export default class VersionBot extends Command { }); } run(msg: CommandoMessage) { - msg.channel.send('Please wait...').then(m => { + msg.say('Please wait...').then(m => { m.edit(`** **`); let emb = new MessageEmbed() .setDescription(`uwufier\'s current build version is **v${config['version']}**. ` + emoji.random()) .setColor(0xFFCC4D) - msg.channel.send(emb); + msg.say(emb); }); } }
\ No newline at end of file |