From 11cfbdaa16929a2a9f95376075aaf52b4aa026ee Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Tue, 21 Apr 2020 10:13:29 -0400 Subject: [PATCH] Celebrate Command --- .env.example | 1 + README.md | 3 ++- commands/roleplay/celebrate.js | 28 ++++++++++++++++++++++++++++ package.json | 2 +- 4 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 commands/roleplay/celebrate.js diff --git a/.env.example b/.env.example index 5b2dbe5b..3a35ff62 100644 --- a/.env.example +++ b/.env.example @@ -62,6 +62,7 @@ XIAO_GITHUB_REPO_USERNAME= # Imgur album IDs BLUSH_ALBUM_ID= BRO_HOOF_ALBUM_ID= +CELEBRATE_ALBUM_ID= EAT_ALBUM_ID= FIDGET_ALBUM_ID= FIST_BUMP_ALBUM_ID= diff --git a/README.md b/README.md index d62cee1e..8be37e13 100644 --- a/README.md +++ b/README.md @@ -132,7 +132,7 @@ in the appropriate channel's topic to use it. ## Commands -Total: 396 +Total: 397 ### Utility: @@ -567,6 +567,7 @@ Total: 396 * **blush:** Blushes at a user. * **bro-hoof:** Gives a user a bro hoof. +* **celebrate:** Celebrates. * **eat:** Feeds a user. * **fist-bump:** Fist-bumps a user. * **high-five:** High Fives a user. diff --git a/commands/roleplay/celebrate.js b/commands/roleplay/celebrate.js new file mode 100644 index 00000000..78c83c2f --- /dev/null +++ b/commands/roleplay/celebrate.js @@ -0,0 +1,28 @@ +const ImgurAlbumCommand = require('../../structures/commands/ImgurAlbum'); +const { CELEBRATE_ALBUM_ID } = process.env; + +module.exports = class CelebrateCommand extends ImgurAlbumCommand { + constructor(client) { + super(client, { + name: 'celebrate', + aliases: ['party'], + group: 'roleplay', + memberName: 'celebrate', + description: 'Celebrates.', + clientPermissions: ['ATTACH_FILES'], + albumID: CELEBRATE_ALBUM_ID, + args: [ + { + key: 'user', + prompt: 'What user do you want to roleplay with?', + type: 'user', + default: msg => msg.author + } + ] + }); + } + + generateText(msg, user) { + return `_**${user.username}** celebrates._`; + } +}; diff --git a/package.json b/package.json index e8b7cbe5..5259c720 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "113.10.0", + "version": "113.11.0", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {