Superscript

This commit is contained in:
Daniel Odendahl Jr
2017-10-12 21:03:32 +00:00
parent ba776e7edc
commit 023e8e9cac
4 changed files with 91 additions and 5 deletions
+1 -4
View File
@@ -8,8 +8,6 @@ module.exports = class SayCommand extends Command {
group: 'text-edit',
memberName: 'say',
description: 'Make XiaoBot say what you wish.',
guildOnly: true,
clientPermissions: ['MANAGE_MESSAGES', 'READ_MESSAGE_HISTORY'],
args: [
{
key: 'text',
@@ -20,8 +18,7 @@ module.exports = class SayCommand extends Command {
});
}
async run(msg, { text }) {
await msg.delete();
run(msg, { text }) {
return msg.say(text);
}
};
+26
View File
@@ -0,0 +1,26 @@
const { Command } = require('discord.js-commando');
const { letterTrans } = require('custom-translate');
const dictionary = require('../../assets/json/superscript');
module.exports = class SuperscriptCommand extends Command {
constructor(client) {
super(client, {
name: 'superscript',
aliases: ['tiny-text', 'small-text'],
group: 'text-edit',
memberName: 'superscript',
description: 'Makes text become tiny text.',
args: [
{
key: 'text',
prompt: 'What text would you like to make tiny?',
type: 'string'
}
]
});
}
run(msg, { text }) {
return msg.say(letterTrans(text, dictionary));
}
};