From bb537cc4552d6d221e96e0431cb870566f46f593 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 30 May 2020 18:48:00 -0400 Subject: [PATCH] Explode Command --- .env.example | 1 + README.md | 3 ++- commands/roleplay/explode.js | 29 +++++++++++++++++++++++++++++ commands/roleplay/kill.js | 1 + commands/util/shutdown.js | 2 +- package.json | 2 +- 6 files changed, 35 insertions(+), 3 deletions(-) create mode 100644 commands/roleplay/explode.js diff --git a/.env.example b/.env.example index a6fe6af8..867b3421 100644 --- a/.env.example +++ b/.env.example @@ -65,6 +65,7 @@ BLUSH_ALBUM_ID= BRO_HOOF_ALBUM_ID= CELEBRATE_ALBUM_ID= EAT_ALBUM_ID= +EXPLODE_ALBUM_ID= FIDGET_ALBUM_ID= FIST_BUMP_ALBUM_ID= HIGH_FIVE_ALBUM_ID= diff --git a/README.md b/README.md index 64c04023..ab996617 100644 --- a/README.md +++ b/README.md @@ -224,7 +224,7 @@ in the appropriate channel's topic to use it. ## Commands -Total: 446 +Total: 447 ### Utility: @@ -715,6 +715,7 @@ Total: 446 * **bro-hoof:** Gives a user a bro hoof. * **celebrate:** Celebrates. * **eat:** Feeds a user. +* **explode:** Explodes a user. * **fist-bump:** Fist-bumps a user. * **high-five:** High Fives a user. * **hold-hands:** Holds hands with a user. diff --git a/commands/roleplay/explode.js b/commands/roleplay/explode.js new file mode 100644 index 00000000..787a367c --- /dev/null +++ b/commands/roleplay/explode.js @@ -0,0 +1,29 @@ +const ImgurAlbumCommand = require('../../structures/commands/ImgurAlbum'); +const { EXPLODE_ALBUM_ID } = process.env; + +module.exports = class ExplodeCommand extends ImgurAlbumCommand { + constructor(client) { + super(client, { + name: 'explode', + aliases: ['explosion', 'megumin', 'boom', 'boom-boom', 'nuke'], + group: 'roleplay', + memberName: 'explode', + description: 'Explodes a user.', + clientPermissions: ['ATTACH_FILES'], + albumID: EXPLODE_ALBUM_ID, + args: [ + { + key: 'user', + prompt: 'What user do you want to roleplay with?', + type: 'user', + default: msg => msg.author + } + ] + }); + } + + generateText(msg, user) { + const noUserAuthor = msg.author.id !== user.id; + return `_**${msg.author.username}** explodes${noUserAuthor ? ` **${user.username}**` : ''}._`; + } +}; diff --git a/commands/roleplay/kill.js b/commands/roleplay/kill.js index 30431fff..c0ff3387 100644 --- a/commands/roleplay/kill.js +++ b/commands/roleplay/kill.js @@ -5,6 +5,7 @@ module.exports = class KillCommand extends ImgurAlbumCommand { constructor(client) { super(client, { name: 'kill', + aliases: ['murder'], group: 'roleplay', memberName: 'kill', description: 'Kills a user.', diff --git a/commands/util/shutdown.js b/commands/util/shutdown.js index d142d528..84b58211 100644 --- a/commands/util/shutdown.js +++ b/commands/util/shutdown.js @@ -4,7 +4,7 @@ module.exports = class ShutdownCommand extends Command { constructor(client) { super(client, { name: 'shutdown', - aliases: ['die', 'explode', 'restart', 'process.exit'], + aliases: ['die', 'restart', 'process.exit'], group: 'util', memberName: 'shutdown', description: 'Shuts down the bot.', diff --git a/package.json b/package.json index 05321a52..2291c716 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "114.31.3", + "version": "114.32.0", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {