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
+63
View File
@@ -0,0 +1,63 @@
{
"a": "ᵃ",
"b": "ᵇ",
"c": "ᶜ",
"d": "ᵈ",
"e": "ᵉ",
"f": "ᶠ",
"g": "ᵍ",
"h": "ʰ",
"i": "ᶦ",
"j": "ʲ",
"k": "ᵏ",
"l": "ˡ",
"m": "ᵐ",
"n": "ⁿ",
"o": "ᵒ",
"p": "ᵖ",
"q": "ᑫ",
"r": "ʳ",
"s": "ˢ",
"t": "ᵗ",
"u": "ᵘ",
"v": "ᵛ",
"w": "ʷ",
"x": "ˣ",
"y": "ʸ",
"z": "ᶻ",
"A": "ᴬ",
"B": "ᴮ",
"C": "ᶜ",
"D": "ᴰ",
"E": "ᴱ",
"F": "ᶠ",
"G": "ᴳ",
"H": "ᴴ",
"I": "ᴵ",
"J": "ᴶ",
"K": "ᴷ",
"L": "ᴸ",
"M": "ᴹ",
"N": "ᴺ",
"O": "ᴼ",
"P": "ᴾ",
"R": "ᴿ",
"S": "ˢ",
"T": "ᵀ",
"U": "ᵁ",
"V": "ⱽ",
"W": "ᵂ",
"X": "ˣ",
"Y": "ʸ",
"Z": "ᶻ",
"0": "⁰",
"1": "¹",
"2": "²",
"3": "³",
"4": "⁴",
"5": "⁵",
"6": "⁶",
"7": "⁷",
"8": "⁸",
"9": "⁹"
}
+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));
}
};
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiaobot",
"version": "47.0.3",
"version": "47.1.0",
"description": "Your personal server companion.",
"main": "Shard.js",
"scripts": {