summaryrefslogtreecommitdiff
path: root/src/commands/fun/showerthought.ts
blob: ba7e86a7049665b4fe7cbb37ef5411fc889f51bc (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
28
29
import { Command, CommandoMessage } from 'discord.js-commando';
import SubredditCommand from '../../models/commands/Subreddit.js'

module.exports = class ShowerThoughtFun extends SubredditCommand {
    constructor(client) {
        super(client, {
            name: 'showerthought',
            aliases: [
                'shower-thought',
                'showerthoughts',
                'shower-thoughts'
            ],
            group: 'fun',
            memberName: 'showerthought',
            description: 'Gives you a shower thought from **r/Showerthought**.',
            examples: ['uwu!showerthought'],
            throttling: {
                usages: 5,
                duration: 30
            },
            userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'],
            clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'],
            subreddit: 'Showerthoughts'
        });
    }
    generateText(post) {
        return post.title;
    }
};