CommandoClient, Change Filenames, etc.

This commit is contained in:
Daniel Odendahl Jr
2017-05-23 16:14:48 +00:00
parent 38674485d1
commit 67f888e7b0
44 changed files with 77 additions and 54 deletions
+28
View File
@@ -0,0 +1,28 @@
const { Command } = require('discord.js-commando');
const { letterTrans } = require('custom-translate');
const dictionary = require('../../assets/json/upsidedown');
module.exports = class UpsideDownCommand extends Command {
constructor(client) {
super(client, {
name: 'upside-down',
aliases: ['udown'],
group: 'textedit',
memberName: 'upside-down',
description: 'Flips text upside-down.',
args: [
{
key: 'text',
prompt: 'What text would you like to flip upside-down?',
type: 'string',
parse: text => letterTrans(text, dictionary)
}
]
});
}
run(msg, args) {
const { text } = args;
return msg.say(text);
}
};