mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Explode Command
This commit is contained in:
@@ -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=
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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}**` : ''}._`;
|
||||
}
|
||||
};
|
||||
@@ -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.',
|
||||
|
||||
@@ -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
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "114.31.3",
|
||||
"version": "114.32.0",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user