Fancy Command

This commit is contained in:
Daniel Odendahl Jr
2018-03-18 20:59:36 +00:00
parent 3e5882df06
commit 3842db73a1
3 changed files with 86 additions and 1 deletions
+2 -1
View File
@@ -8,7 +8,7 @@ Xiao is a Discord bot coded in JavaScript with
300 commands, she is one of the most feature-filled bots out there, and formerly
served over 10,000 servers with a uniquely devoted fanbase.
## Commands (288)
## Commands (289)
### Utility:
* **prefix**: Shows or sets the command prefix.
@@ -269,6 +269,7 @@ served over 10,000 servers with a uniquely devoted fanbase.
* **dvorak**: Converts text to Dvorak encoding.
* **embed**: Sends text in an embed.
* **emojify**: Converts text to emoji form.
* **fancy**: Converts text to fancy letters.
* **hex**: Converts text to hex.
* **latlmes**: Creates a Latlmes fake link that redirects to a rickroll.
* **lmgtfy**: Creates a LMGTFY link with the query you provide.
+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": ""
}
+30
View File
@@ -0,0 +1,30 @@
const { Command } = require('discord.js-commando');
const { letterTrans } = require('custom-translate');
const dictionary = require('../../assets/json/fancy');
module.exports = class FancyCommand extends Command {
constructor(client) {
super(client, {
name: 'fancy',
aliases: ['fancy-letters'],
group: 'text-edit',
memberName: 'fancy',
description: 'Converts text to fancy letters.',
args: [
{
key: 'text',
prompt: 'What text would you like to convert to fancy letters?',
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));
}
};