mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-22 10:19:11 +02:00
More uniform group names
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
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: ['u-down'],
|
||||
group: 'edit-text',
|
||||
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, { text }) {
|
||||
return msg.say(letterTrans(text, dictionary).split('').reverse().join(''));
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user