From edcdf8bcdce6bf0fdf74df24df24f8c330e0066a Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Fri, 26 Mar 2021 17:17:51 -0400 Subject: [PATCH] Cry Command --- .env.example | 1 + commands/roleplay/cry.js | 28 ++++++++++++++++++++++++++++ package.json | 6 +++--- 3 files changed, 32 insertions(+), 3 deletions(-) create mode 100644 commands/roleplay/cry.js diff --git a/.env.example b/.env.example index 0d328b08..947a186d 100644 --- a/.env.example +++ b/.env.example @@ -75,6 +75,7 @@ BITE_ALBUM_ID= BLUSH_ALBUM_ID= BRO_HOOF_ALBUM_ID= CELEBRATE_ALBUM_ID= +CRY_ALBUM_ID= EAT_ALBUM_ID= EXPLODE_ALBUM_ID= FIDGET_ALBUM_ID= diff --git a/commands/roleplay/cry.js b/commands/roleplay/cry.js new file mode 100644 index 00000000..ae89f888 --- /dev/null +++ b/commands/roleplay/cry.js @@ -0,0 +1,28 @@ +const ImgurAlbumCommand = require('../../structures/commands/ImgurAlbum'); +const { CRY_ALBUM_ID } = process.env; + +module.exports = class CryCommand extends ImgurAlbumCommand { + constructor(client) { + super(client, { + name: 'cry', + group: 'roleplay', + memberName: 'cry', + description: 'Cries at a user.', + clientPermissions: ['ATTACH_FILES'], + albumID: CRY_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}** cries${noUserAuthor ? ` at **${user.username}**` : ''}._`; + } +}; diff --git a/package.json b/package.json index 548a0e8a..35725a30 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "134.0.0", + "version": "134.1.0", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": { @@ -49,7 +49,7 @@ "discord.js-commando": "github:discordjs/Commando", "dotenv": "^8.2.0", "emoji-regex": "^9.2.2", - "eslint": "^7.22.0", + "eslint": "^7.23.0", "expr-eval": "^2.0.2", "fen-validator": "^1.4.1", "font-finder": "^1.1.0", @@ -77,7 +77,7 @@ "tesseract.js": "^2.1.4", "text-diff": "^1.0.1", "tictactoe-minimax-ai": "^1.2.1", - "user-agents": "^1.0.600", + "user-agents": "^1.0.602", "valid-url": "^1.0.9", "wavefile": "^11.0.0", "winston": "^3.3.3",