From 72db0f1a989bc5d4d662a5e46f036707b5ea237f Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Mon, 20 Aug 2018 02:46:56 +0000 Subject: [PATCH] Brony Speak Command --- README.md | 3 +- assets/json/brony-speak.json | 112 ++++++++++++++++++++++++++++++ commands/text-edit/brony-speak.js | 30 ++++++++ package.json | 4 +- 4 files changed, 146 insertions(+), 3 deletions(-) create mode 100644 assets/json/brony-speak.json create mode 100644 commands/text-edit/brony-speak.js diff --git a/README.md b/README.md index fb694a53..f2c04eaf 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ Xiao is a Discord bot coded in JavaScript with The bot is no longer available for invite. You can self-host the bot, or use her on the [home server](https://discord.gg/sbMe32W). -## Commands (293) +## Commands (294) ### Utility: * **eval**: Executes JavaScript code. @@ -282,6 +282,7 @@ on the [home server](https://discord.gg/sbMe32W). * **base64**: Converts text to/from Base64. * **binary**: Converts text to/from binary. * **braille**: Converts text to braille. +* **brony-speak**: Converts text to brony speak. * **clap**: Sends 👏 text 👏 like 👏 this. * **cow-say**: Makes a cow say your text. * **cow-think**: Makes a cow think your text. diff --git a/assets/json/brony-speak.json b/assets/json/brony-speak.json new file mode 100644 index 00000000..b87c7be4 --- /dev/null +++ b/assets/json/brony-speak.json @@ -0,0 +1,112 @@ +{ + "hand": "hoof", + "hands": "hooves", + "foot": "hoof", + "feet": "hooves", + "ass": "flank", + "asses": "flanks", + "butt": "flank", + "butts": "flanks", + "anyone": "anypony", + "cowboy": "cowpony", + "cowboys": "cowponies", + "cowgirl": "cowpony", + "cowgirls": "cowponies", + "person": "pony", + "people": "ponies", + "persons": "ponies", + "hell": "hay", + "heck": "hay", + "nail": "hoof", + "nails": "hooves", + "arm": "hoof", + "arms": "hooves", + "brofist": "brohoof", + "fist": "hoof", + "fists": "hooves", + "ladies": "mares", + "lady": "mare", + "gentlemen": "stallions", + "gentleman": "stallion", + "shit": "horseapples", + "shits": "horseapples", + "naysayer": "neigh-sayer", + "naysayers": "neigh-sayers", + "nay": "neigh", + "noone": "nopony", + "nobody": "nopony", + "nobodies": "noponies", + "fuck": "horseapples", + "fucks": "horseapples", + "fucking": "horseappling", + "fucker": "horseappler", + "fuckers": "horseapplers", + "scaredy-cat": "scaredy-pony", + "scaredy-cats": "scaredy-ponies", + "single-handedly": "single-hoofedly", + "singlehandedly": "singlehoofedly", + "second-hand": "second-hoof", + "secondhand": "secondhoof", + "handed": "hoofed", + "someone": "somepony", + "somebody": "somepony", + "somebodies": "someponies", + "god": "Celestia", + "world": "Ponyville", + "fan": "brony", + "fans": "bronies", + "fap": "clop", + "porn": "clopfic", + "porno": "clopfic", + "pornography": "clopfic", + "empty-handed": "empty-hoofed", + "emptyhanded": "emptyhoofed", + "girlfriend": "fillyfriend", + "girlfriends": "fillyfriends", + "boyfriend": "coltfriend", + "boyfriends": "coltfriends", + "childhood": "fillyhood", + "child": "filly", + "children": "fillies", + "kid": "filly", + "kids": "fillies", + "first-hand": "first-hoof", + "firsthand": "firsthoof", + "footsteps": "hoofsteps", + "footstep": "hoofstep", + "hair": "mane", + "trolling": "paraspriting", + "troll": "parasprite", + "hater": "parasprite", + "parasite": "parasprite", + "mankind": "ponykind", + "stalemate": "stalemare", + "handjob": "hoofjob", + "hand-job": "hoof-job", + "gay": "coltcuddler", + "gays": "coltcuddlers", + "lesbian": "fillyfooler", + "lesbians": "fillyfoolers", + "adopt": "claim", + "adoption": "claiming", + "baby": "foal", + "babies": "foals", + "knuckle": "fetlock", + "knuckles": "fetlocks", + "girl": "filly", + "girls": "fillies", + "boy": "colt", + "boys": "colts", + "toddler": "yearling", + "toddlers": "yearlings", + "man": "stallion", + "men": "stallions", + "male": "stallion", + "males": "stallions", + "woman": "mare", + "women": "mares", + "female": "mare", + "females": "mares", + "teleport": "wink", + "teleporting": "winking" +} diff --git a/commands/text-edit/brony-speak.js b/commands/text-edit/brony-speak.js new file mode 100644 index 00000000..ab1fa3c7 --- /dev/null +++ b/commands/text-edit/brony-speak.js @@ -0,0 +1,30 @@ +const Command = require('../../structures/Command'); +const { wordTrans } = require('custom-translate'); +const dictionary = require('../../assets/json/brony-speak'); + +module.exports = class BronySpeakCommand extends Command { + constructor(client) { + super(client, { + name: 'brony-speak', + aliases: ['pony-speak'], + group: 'text-edit', + memberName: 'brony-speak', + description: 'Converts text to brony speak.', + args: [ + { + key: 'text', + prompt: 'What text would you like to convert to brony speak?', + type: 'string', + validate: text => { + if (wordTrans(text, dictionary).length < 2000) return true; + return 'Invalid text, your text is too long.'; + } + } + ] + }); + } + + run(msg, { text }) { + return msg.say(wordTrans(text, dictionary)); + } +}; diff --git a/package.json b/package.json index 1c1d51ff..6b63f3b0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "87.2.0", + "version": "87.3.0", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": { @@ -35,7 +35,7 @@ "cheerio": "1.0.0-rc.2", "common-tags": "^1.8.0", "cowsay": "^1.3.1", - "custom-translate": "^2.2.4", + "custom-translate": "^2.2.5", "discord.js": "github:discordjs/discord.js", "discord.js-commando": "github:discordjs/Commando", "erlpack": "github:discordapp/erlpack",