Smile Command

This commit is contained in:
Dragon Fire
2020-06-19 00:12:05 -04:00
parent 5b8dfb8302
commit bb2e455acf
4 changed files with 33 additions and 2 deletions
+28
View File
@@ -0,0 +1,28 @@
const ImgurAlbumCommand = require('../../structures/commands/ImgurAlbum');
const { SMILE_ALBUM_ID } = process.env;
module.exports = class SmileCommand extends ImgurAlbumCommand {
constructor(client) {
super(client, {
name: 'smile',
group: 'roleplay',
memberName: 'smile',
description: 'Smiles at a user.',
clientPermissions: ['ATTACH_FILES'],
albumID: SMILE_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}** smiles${noUserAuthor ? ` at **${user.username}**` : ''}._`;
}
};