From 8c435855e647ee7aef8578e253caf91fe44c67cc Mon Sep 17 00:00:00 2001 From: 8cy <50817549+8cy@users.noreply.github.com> Date: Thu, 16 Apr 2020 04:56:37 -0700 Subject: The Purification, v7.0.0 add: - aesthetic, oddcase, stretch, surreal - culturedtext - dogeify - howify - insult - lorem - spongebob Other Stuff: - many refactoring --- src/commands/fun/oddcase.ts | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/commands/fun/oddcase.ts (limited to 'src/commands/fun/oddcase.ts') diff --git a/src/commands/fun/oddcase.ts b/src/commands/fun/oddcase.ts new file mode 100644 index 0000000..b574244 --- /dev/null +++ b/src/commands/fun/oddcase.ts @@ -0,0 +1,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(); + } +}; \ No newline at end of file -- cgit v1.2.3