mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-23 18:05:01 +02:00
Explode Command
This commit is contained in:
@@ -65,6 +65,7 @@ BLUSH_ALBUM_ID=
|
|||||||
BRO_HOOF_ALBUM_ID=
|
BRO_HOOF_ALBUM_ID=
|
||||||
CELEBRATE_ALBUM_ID=
|
CELEBRATE_ALBUM_ID=
|
||||||
EAT_ALBUM_ID=
|
EAT_ALBUM_ID=
|
||||||
|
EXPLODE_ALBUM_ID=
|
||||||
FIDGET_ALBUM_ID=
|
FIDGET_ALBUM_ID=
|
||||||
FIST_BUMP_ALBUM_ID=
|
FIST_BUMP_ALBUM_ID=
|
||||||
HIGH_FIVE_ALBUM_ID=
|
HIGH_FIVE_ALBUM_ID=
|
||||||
|
|||||||
@@ -224,7 +224,7 @@ in the appropriate channel's topic to use it.
|
|||||||
|
|
||||||
## Commands
|
## Commands
|
||||||
|
|
||||||
Total: 446
|
Total: 447
|
||||||
|
|
||||||
### Utility:
|
### Utility:
|
||||||
|
|
||||||
@@ -715,6 +715,7 @@ Total: 446
|
|||||||
* **bro-hoof:** Gives a user a bro hoof.
|
* **bro-hoof:** Gives a user a bro hoof.
|
||||||
* **celebrate:** Celebrates.
|
* **celebrate:** Celebrates.
|
||||||
* **eat:** Feeds a user.
|
* **eat:** Feeds a user.
|
||||||
|
* **explode:** Explodes a user.
|
||||||
* **fist-bump:** Fist-bumps a user.
|
* **fist-bump:** Fist-bumps a user.
|
||||||
* **high-five:** High Fives a user.
|
* **high-five:** High Fives a user.
|
||||||
* **hold-hands:** Holds hands with 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) {
|
constructor(client) {
|
||||||
super(client, {
|
super(client, {
|
||||||
name: 'kill',
|
name: 'kill',
|
||||||
|
aliases: ['murder'],
|
||||||
group: 'roleplay',
|
group: 'roleplay',
|
||||||
memberName: 'kill',
|
memberName: 'kill',
|
||||||
description: 'Kills a user.',
|
description: 'Kills a user.',
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ module.exports = class ShutdownCommand extends Command {
|
|||||||
constructor(client) {
|
constructor(client) {
|
||||||
super(client, {
|
super(client, {
|
||||||
name: 'shutdown',
|
name: 'shutdown',
|
||||||
aliases: ['die', 'explode', 'restart', 'process.exit'],
|
aliases: ['die', 'restart', 'process.exit'],
|
||||||
group: 'util',
|
group: 'util',
|
||||||
memberName: 'shutdown',
|
memberName: 'shutdown',
|
||||||
description: 'Shuts down the bot.',
|
description: 'Shuts down the bot.',
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiao",
|
"name": "xiao",
|
||||||
"version": "114.31.3",
|
"version": "114.32.0",
|
||||||
"description": "Your personal server companion.",
|
"description": "Your personal server companion.",
|
||||||
"main": "Xiao.js",
|
"main": "Xiao.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user