Files
xiao/commands/text-edit/upside-down.js
T
Daniel Odendahl Jr 53e1d6a8ff eslint config aqua
2017-07-27 21:00:54 +00:00

29 lines
678 B
JavaScript

const Command = require('../../structures/Command');
const { letterTrans } = require('custom-translate');
const dictionary = require('../../assets/json/upside-down');
module.exports = class UpsideDownCommand extends Command {
constructor(client) {
super(client, {
name: 'upside-down',
aliases: ['udown'],
group: 'text-edit',
memberName: 'upside-down',
description: 'Flips text upside-down.',
args: [
{
key: 'text',
prompt: 'What text would you like to flip upside-down?',
type: 'string'
}
]
});
}
run(msg, args) {
const { text } = args;
const converted = letterTrans(text, dictionary);
return msg.say(converted);
}
};