mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-15 08:22:37 +02:00
Cry Command
This commit is contained in:
@@ -75,6 +75,7 @@ BITE_ALBUM_ID=
|
|||||||
BLUSH_ALBUM_ID=
|
BLUSH_ALBUM_ID=
|
||||||
BRO_HOOF_ALBUM_ID=
|
BRO_HOOF_ALBUM_ID=
|
||||||
CELEBRATE_ALBUM_ID=
|
CELEBRATE_ALBUM_ID=
|
||||||
|
CRY_ALBUM_ID=
|
||||||
EAT_ALBUM_ID=
|
EAT_ALBUM_ID=
|
||||||
EXPLODE_ALBUM_ID=
|
EXPLODE_ALBUM_ID=
|
||||||
FIDGET_ALBUM_ID=
|
FIDGET_ALBUM_ID=
|
||||||
|
|||||||
@@ -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
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiao",
|
"name": "xiao",
|
||||||
"version": "134.0.0",
|
"version": "134.1.0",
|
||||||
"description": "Your personal server companion.",
|
"description": "Your personal server companion.",
|
||||||
"main": "Xiao.js",
|
"main": "Xiao.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@@ -49,7 +49,7 @@
|
|||||||
"discord.js-commando": "github:discordjs/Commando",
|
"discord.js-commando": "github:discordjs/Commando",
|
||||||
"dotenv": "^8.2.0",
|
"dotenv": "^8.2.0",
|
||||||
"emoji-regex": "^9.2.2",
|
"emoji-regex": "^9.2.2",
|
||||||
"eslint": "^7.22.0",
|
"eslint": "^7.23.0",
|
||||||
"expr-eval": "^2.0.2",
|
"expr-eval": "^2.0.2",
|
||||||
"fen-validator": "^1.4.1",
|
"fen-validator": "^1.4.1",
|
||||||
"font-finder": "^1.1.0",
|
"font-finder": "^1.1.0",
|
||||||
@@ -77,7 +77,7 @@
|
|||||||
"tesseract.js": "^2.1.4",
|
"tesseract.js": "^2.1.4",
|
||||||
"text-diff": "^1.0.1",
|
"text-diff": "^1.0.1",
|
||||||
"tictactoe-minimax-ai": "^1.2.1",
|
"tictactoe-minimax-ai": "^1.2.1",
|
||||||
"user-agents": "^1.0.600",
|
"user-agents": "^1.0.602",
|
||||||
"valid-url": "^1.0.9",
|
"valid-url": "^1.0.9",
|
||||||
"wavefile": "^11.0.0",
|
"wavefile": "^11.0.0",
|
||||||
"winston": "^3.3.3",
|
"winston": "^3.3.3",
|
||||||
|
|||||||
Reference in New Issue
Block a user