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
+1
View File
@@ -65,6 +65,7 @@ BLUSH_ALBUM_ID=
BRO_HOOF_ALBUM_ID=
CELEBRATE_ALBUM_ID=
EAT_ALBUM_ID=
EXPLODE_ALBUM_ID=
FIDGET_ALBUM_ID=
FIST_BUMP_ALBUM_ID=
HIGH_FIVE_ALBUM_ID=
+2 -1
View File
@@ -224,7 +224,7 @@ in the appropriate channel's topic to use it.
## Commands
Total: 446
Total: 447
### Utility:
@@ -715,6 +715,7 @@ Total: 446
* **bro-hoof:** Gives a user a bro hoof.
* **celebrate:** Celebrates.
* **eat:** Feeds a user.
* **explode:** Explodes a user.
* **fist-bump:** Fist-bumps a user.
* **high-five:** High Fives a user.
* **hold-hands:** Holds hands with a user.
+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}**` : ''}._`;
}
};
+1
View File
@@ -5,6 +5,7 @@ module.exports = class KillCommand extends ImgurAlbumCommand {
constructor(client) {
super(client, {
name: 'kill',
aliases: ['murder'],
group: 'roleplay',
memberName: 'kill',
description: 'Kills a user.',
+1 -1
View File
@@ -4,7 +4,7 @@ module.exports = class ShutdownCommand extends Command {
constructor(client) {
super(client, {
name: 'shutdown',
aliases: ['die', 'explode', 'restart', 'process.exit'],
aliases: ['die', 'restart', 'process.exit'],
group: 'util',
memberName: 'shutdown',
description: 'Shuts down the bot.',
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "114.31.3",
"version": "114.32.0",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {