summaryrefslogtreecommitdiff
path: root/src/commands/bot/api.ts
blob: 98486a91fc8c6b140087c88fe23d344c0ed4c495 (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 APIBot extends Command {
    constructor(client) {
        super(client, {
            name: 'api',
            group: 'bot',
            memberName: 'api',
            description: 'Gives you uwufier\'s API link and documentation.',
            examples: ['uwu!api'],
            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\'s a link to my [API](http://uwufier.kyzer.co/api/v1/). (To use, copy the given URL, then append the API endpoints looking to get to it.) As for documentation, it is currently under heavy re-writing. As soon as the documentation goes live, you can read through it on the [official uwufier website](https://kyzer.co/discord/bots/uwufier/)! ' + emoji.random())
            .setDescription(`Uwifier's API is currently down. ${emoji.random()}`)
            msg.say(emb)
    }
};