From 97f886693fe4cde04d3d8b21d6363b343724d48d Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 14 Jul 2019 16:15:25 -0400 Subject: [PATCH] Unflip Command --- README.md | 3 ++- commands/single/unflip.js | 17 +++++++++++++++++ package.json | 6 +++--- 3 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 commands/single/unflip.js diff --git a/README.md b/README.md index b7d2e9d1..c585b372 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ Xiao is a Discord bot coded in JavaScript with 6. Run `npm i -g pm2` to install PM2. 7. Run `pm2 start Xiao.js --name xiao` to run the bot. -## Commands (341) +## Commands (342) ### Utility: * **eval:** Executes JavaScript code. @@ -149,6 +149,7 @@ Xiao is a Discord bot coded in JavaScript with * **no-u:** no u * **spam:** Responds with a picture of Spam. * **tableflip:** Flips a table... With animation! +* **unflip:** Unflips a flipped table. * **wynaut:** Why not? Wynaut? * **yoff:** Posts a picture that truly defines modern art. diff --git a/commands/single/unflip.js b/commands/single/unflip.js new file mode 100644 index 00000000..5935f635 --- /dev/null +++ b/commands/single/unflip.js @@ -0,0 +1,17 @@ +const Command = require('../../structures/Command'); + +module.exports = class UnflipCommand extends Command { + constructor(client) { + super(client, { + name: 'unflip', + group: 'single', + memberName: 'unflip', + description: 'Unflips a flipped table.', + patterns: [/\(╯°□°)╯︵ ┻━┻/i] + }); + } + + run(msg) { + return msg.say('┬─┬ ノ( ゜-゜ノ)'); + } +}; diff --git a/package.json b/package.json index 9740da2e..985f5f2d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "107.0.2", + "version": "107.1.0", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": { @@ -39,10 +39,10 @@ "discord.js-commando": "github:discordjs/Commando", "dotenv": "^8.0.0", "gifencoder": "^2.0.1", - "mathjs": "^6.0.2", + "mathjs": "^6.0.3", "moment": "^2.24.0", "moment-duration-format": "^2.3.2", - "moment-timezone": "^0.5.25", + "moment-timezone": "^0.5.26", "node-superfetch": "^0.1.9", "random-js": "^2.1.0", "winston": "^3.2.1"