Alphabet Reverse

This commit is contained in:
Daniel Odendahl Jr
2017-09-23 03:22:11 +00:00
parent 66996b29e7
commit c764d5cb85
3 changed files with 91 additions and 1 deletions
+64
View File
@@ -0,0 +1,64 @@
{
"a": "z",
"b": "y",
"c": "x",
"d": "w",
"e": "v",
"f": "u",
"g": "t",
"h": "s",
"i": "r",
"j": "q",
"k": "p",
"l": "o",
"m": "n",
"n": "m",
"o": "l",
"p": "k",
"q": "j",
"r": "i",
"s": "h",
"t": "g",
"u": "f",
"v": "e",
"w": "d",
"x": "c",
"y": "b",
"z": "a",
"A": "Z",
"B": "Y",
"C": "X",
"D": "W",
"E": "V",
"F": "U",
"G": "T",
"H": "S",
"I": "R",
"J": "Q",
"K": "P",
"L": "O",
"M": "N",
"N": "M",
"O": "L",
"P": "K",
"Q": "J",
"R": "I",
"S": "H",
"T": "G",
"U": "F",
"V": "E",
"W": "D",
"X": "C",
"Y": "B",
"Z": "A",
"0": "9",
"1": "8",
"2": "7",
"3": "6",
"4": "5",
"5": "4",
"6": "3",
"7": "2",
"8": "1",
"9": "0"
}
+26
View File
@@ -0,0 +1,26 @@
const Command = require('../../structures/Command');
const { letterTrans } = require('custom-translate');
const dictionary = require('../../assets/json/alphabet-reverse');
module.exports = class AlphabetReverseCommand extends Command {
constructor(client) {
super(client, {
name: 'alphabet-reverse',
aliases: ['reverse-alphabet', 'tebahpla'],
group: 'text-edit',
memberName: 'alphabet-reverse',
description: 'Reverses the alphabet of text.',
args: [
{
key: 'text',
prompt: 'What text would you like to reverse the alphabet of?',
type: 'string'
}
]
});
}
run(msg, { text }) {
return msg.say(letterTrans(text, dictionary));
}
};
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiaobot",
"version": "42.2.1",
"version": "42.3.0",
"description": "Your personal server companion.",
"main": "Shard.js",
"scripts": {