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
+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}**` : ''}._`;
}
};