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