Explode Command

This commit is contained in:
Dragon Fire
2020-05-30 18:48:00 -04:00
parent 98d19619ad
commit bb537cc455
6 changed files with 35 additions and 3 deletions
+29
View File
@@ -0,0 +1,29 @@
const ImgurAlbumCommand = require('../../structures/commands/ImgurAlbum');
const { EXPLODE_ALBUM_ID } = process.env;
module.exports = class ExplodeCommand extends ImgurAlbumCommand {
constructor(client) {
super(client, {
name: 'explode',
aliases: ['explosion', 'megumin', 'boom', 'boom-boom', 'nuke'],
group: 'roleplay',
memberName: 'explode',
description: 'Explodes a user.',
clientPermissions: ['ATTACH_FILES'],
albumID: EXPLODE_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}** explodes${noUserAuthor ? ` **${user.username}**` : ''}._`;
}
};