mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-10 19:04:42 +02:00
Cry Command
This commit is contained in:
@@ -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}**` : ''}._`;
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user