This commit is contained in:
Daniel Odendahl Jr
2018-02-08 20:22:09 +00:00
parent cfb57291ab
commit bce41f6ef1
4 changed files with 102 additions and 37 deletions
+4 -36
View File
@@ -3,38 +3,10 @@
"text": "Rune Factory 4",
"type": "PLAYING"
},
{
"text": "dragonfire535 code",
"type": "WATCHING"
},
{
"text": "your voice",
"type": "LISTENING"
},
{
"text": "with your heart",
"type": "PLAYING"
},
{
"text": "you",
"type": "WATCHING"
},
{
"text": "over your server",
"type": "WATCHING"
},
{
"text": "you chat",
"type": "WATCHING"
},
{
"text": "with dragonfire535",
"type": "PLAYING"
},
{
"text": "with a Wumpus",
"type": "PLAYING"
},
{
"text": "you eat pant",
"type": "WATCHING"
@@ -43,14 +15,6 @@
"text": "anime",
"type": "WATCHING"
},
{
"text": "with you",
"type": "PLAYING"
},
{
"text": "you",
"type": "PLAYING"
},
{
"text": "Dust: An Elysian Tail",
"type": "PLAYING"
@@ -66,5 +30,9 @@
{
"text": "in Selphia",
"type": "PLAYING"
},
{
"text": "with Amber",
"type": "PLAYING"
}
]
+68
View File
@@ -0,0 +1,68 @@
{
"-": "[",
"=": "]",
"q": "'",
"w": ",",
"e": ".",
"r": "p",
"t": "y",
"y": "f",
"u": "g",
"i": "c",
"o": "r",
"p": "l",
"[": "/",
"]": "=",
"s": "o",
"d": "e",
"f": "u",
"g": "i",
"h": "d",
"j": "h",
"k": "t",
"l": "n",
";": "s",
"'": "-",
"z": ";",
"x": "q",
"c": "j",
"v": "k",
"b": "x",
"n": "b",
",": "w",
".": "v",
"/": "z",
"_": "{",
"+": "}",
"Q": "\"",
"W": "<",
"E": ">",
"R": "P",
"T": "Y",
"Y": "F",
"U": "G",
"I": "C",
"O": "R",
"P": "L",
"{": "?",
"}": "+",
"S": "O",
"D": "E",
"F": "U",
"G": "I",
"H": "D",
"J": "H",
"K": "T",
"L": "N",
":": "S",
"\"": "_",
"Z": ":",
"X": "Q",
"C": "J",
"V": "K",
"B": "X",
"N": "B",
"<": "W",
">": "V",
"?": "Z"
}
+29
View File
@@ -0,0 +1,29 @@
const { Command } = require('discord.js-commando');
const { letterTrans } = require('custom-translate');
const dictionary = require('../../assets/json/dvorak');
module.exports = class DvorakCommand extends Command {
constructor(client) {
super(client, {
name: 'dvorak',
group: 'text-edit',
memberName: 'dvorak',
description: 'Converts text to Dvorak encoding.',
args: [
{
key: 'text',
prompt: 'What text would you like to convert to Dvorak encoding?',
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": "xiao",
"version": "62.4.3",
"version": "62.5.0",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {