mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 15:07:42 +02:00
Superscript
This commit is contained in:
@@ -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": "⁹"
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiaobot",
|
||||
"version": "47.0.3",
|
||||
"version": "47.1.0",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Shard.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user