diff --git a/assets/json/activity.json b/assets/json/activity.json index bd5043ee..e43c493b 100644 --- a/assets/json/activity.json +++ b/assets/json/activity.json @@ -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" } ] diff --git a/assets/json/dvorak.json b/assets/json/dvorak.json new file mode 100644 index 00000000..af91741c --- /dev/null +++ b/assets/json/dvorak.json @@ -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" +} diff --git a/commands/text-edit/dvorak.js b/commands/text-edit/dvorak.js new file mode 100644 index 00000000..f4e071ea --- /dev/null +++ b/commands/text-edit/dvorak.js @@ -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)); + } +}; diff --git a/package.json b/package.json index f49f03dd..4cfaf5b8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "62.4.3", + "version": "62.5.0", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {