This commit is contained in:
Daniel Odendahl Jr
2017-10-18 20:31:19 +00:00
parent 098ea9dd73
commit 1d902fa1f6
3 changed files with 84 additions and 1 deletions
+54
View File
@@ -0,0 +1,54 @@
{
"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": "𝒫",
"Q": "𝒬",
"R": "𝑅",
"S": "𝒮",
"T": "𝒯",
"U": "𝒰",
"V": "𝒱",
"W": "𝒲",
"X": "𝒳",
"Y": "𝒴",
"Z": "𝒵"
}
+29
View File
@@ -0,0 +1,29 @@
const { Command } = require('discord.js-commando');
const { letterTrans } = require('custom-translate');
const dictionary = require('../../assets/json/cursive');
module.exports = class CursiveCommand extends Command {
constructor(client) {
super(client, {
name: 'cursive',
group: 'text-edit',
memberName: 'cursive',
description: 'Converts text to cursive.',
args: [
{
key: 'text',
prompt: 'What text would you like to convert to cursive?',
type: 'string',
validate: text => {
if (letterTrans(text, dictionary).length < 2000) return true;
return 'Invalid text, your text is too long.';
}
}
]
});
}
run(msg, { text }) {
return msg.say(letterTrans(text, dictionary));
}
};
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiaobot",
"version": "47.6.2",
"version": "47.7.0",
"description": "Your personal server companion.",
"main": "Shard.js",
"scripts": {