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
30
31
32
|
import { Command, CommandoMessage } from 'discord.js-commando';
import ct from 'culturedtext';
import emoji from 'emoji-random';
module.exports = class OddcaseFun extends Command {
constructor(client) {
super(client, {
name: 'oddcase',
group: 'fun',
memberName: 'oddcase',
description: 'Oddcases anything you send.',
args: [
{
key: 'userMsg',
prompt: 'What would you like to oddcase?',
type: 'string'
}
],
examples: [
'uwu!oddcase please oddcase this'
],
userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'],
clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'],
});
}
run(msg: CommandoMessage, { userMsg }) {
var m = userMsg;
var u1 = ct.oddcase(m);
msg.reply(u1 + ' ' + emoji.random());
msg.delete();
}
};
|