summaryrefslogtreecommitdiff
path: root/src/commands/bot/email.ts
blob: d884b9950bfc4e72b95852864224dd3acd9828d2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import { Command, CommandoMessage } from 'discord.js-commando';
import emoji from 'emoji-random';
import { MessageEmbed } from 'discord.js';

module.exports = class TwitchBot extends Command {
    constructor(client) {
        super(client, {
            name: 'email',
            aliases: ['mail', 'contact', 'gmail'],
            group: 'bot',
            memberName: 'email',
            description: 'Gives you a reference to the bot author\'s (Sin) best method of contact.',
            examples: ['uwu!email'],
            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(`To contact <@217348698294714370>, please send a email to \`[email protected]\`. Alternatively, you can either send a DM to <@217348698294714370> on Discord or on [Twitter](https://twitter.com/9inny). (All spam and unsolicited inquiries will be dealt with accordingly). ${emoji.random()}`)
        msg.say(emb)
    }
};