Cry Command

This commit is contained in:
Dragon Fire
2021-03-26 17:17:51 -04:00
parent d4d2909b4a
commit edcdf8bcdc
3 changed files with 32 additions and 3 deletions
+1
View File
@@ -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=
+28
View File
@@ -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}**` : ''}._`;
}
};
+3 -3
View File
@@ -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",