diff options
Diffstat (limited to 'src/commands/bot/twitter.ts')
| -rw-r--r-- | src/commands/bot/twitter.ts | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/commands/bot/twitter.ts b/src/commands/bot/twitter.ts new file mode 100644 index 0000000..5817000 --- /dev/null +++ b/src/commands/bot/twitter.ts @@ -0,0 +1,26 @@ +import { Command, CommandoMessage } from 'discord.js-commando'; +import emoji from 'emoji-random'; +import { MessageEmbed } from 'discord.js'; + +module.exports = class TwitterBot extends Command { + constructor(client) { + super(client, { + name: 'twitter', + group: 'bot', + memberName: 'twitter', + description: 'Gives you a link to the bot author\'s (Sin) Twitter profile.', + examples: ['uwu!twitter'], + userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], + clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], + throttling: { + usages: 5, + duration: 30 + }, + }); + } + run(msg: CommandoMessage) { + let emb = new MessageEmbed() + .setDescription(`Here is <@217348698294714370>'s [Twitter profile](https://twitter.com/9inny). ${emoji.random()}`) + msg.say(emb) + } +};
\ No newline at end of file |