mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 14:21:41 +02:00
Bite Command
This commit is contained in:
@@ -74,6 +74,7 @@ XIAO_GITHUB_REPO_NAME=
|
|||||||
XIAO_GITHUB_REPO_USERNAME=
|
XIAO_GITHUB_REPO_USERNAME=
|
||||||
|
|
||||||
# Imgur album IDs
|
# Imgur album IDs
|
||||||
|
BITE_ALBUM_ID=
|
||||||
BLUSH_ALBUM_ID=
|
BLUSH_ALBUM_ID=
|
||||||
BRO_HOOF_ALBUM_ID=
|
BRO_HOOF_ALBUM_ID=
|
||||||
CELEBRATE_ALBUM_ID=
|
CELEBRATE_ALBUM_ID=
|
||||||
|
|||||||
@@ -256,7 +256,7 @@ in the appropriate channel's topic to use it.
|
|||||||
|
|
||||||
## Commands
|
## Commands
|
||||||
|
|
||||||
Total: 543
|
Total: 544
|
||||||
|
|
||||||
### Utility:
|
### Utility:
|
||||||
|
|
||||||
@@ -843,6 +843,7 @@ Total: 543
|
|||||||
|
|
||||||
### Roleplay:
|
### Roleplay:
|
||||||
|
|
||||||
|
* **bite:** Bites a user.
|
||||||
* **blush:** Blushes at a user.
|
* **blush:** Blushes at a user.
|
||||||
* **bro-hoof:** Gives a user a bro hoof.
|
* **bro-hoof:** Gives a user a bro hoof.
|
||||||
* **celebrate:** Celebrates.
|
* **celebrate:** Celebrates.
|
||||||
|
|||||||
@@ -0,0 +1,27 @@
|
|||||||
|
const ImgurAlbumCommand = require('../../structures/commands/ImgurAlbum');
|
||||||
|
const { BITE_ALBUM_ID } = process.env;
|
||||||
|
|
||||||
|
module.exports = class BiteCommand extends ImgurAlbumCommand {
|
||||||
|
constructor(client) {
|
||||||
|
super(client, {
|
||||||
|
name: 'bite',
|
||||||
|
aliases: ['nom'],
|
||||||
|
group: 'roleplay',
|
||||||
|
memberName: 'bite',
|
||||||
|
description: 'Bites a user.',
|
||||||
|
clientPermissions: ['ATTACH_FILES'],
|
||||||
|
albumID: BITE_ALBUM_ID,
|
||||||
|
args: [
|
||||||
|
{
|
||||||
|
key: 'user',
|
||||||
|
prompt: 'What user do you want to roleplay with?',
|
||||||
|
type: 'user'
|
||||||
|
}
|
||||||
|
]
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
generateText(msg, user) {
|
||||||
|
return `_**${msg.author.username}** bites **${user.username}**._`;
|
||||||
|
}
|
||||||
|
};
|
||||||
+1
-1
@@ -62,7 +62,7 @@
|
|||||||
"utf-8-validate": "^5.0.2"
|
"utf-8-validate": "^5.0.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"eslint": "^7.8.1",
|
"eslint": "^7.9.0",
|
||||||
"eslint-config-amber": "^2.0.3",
|
"eslint-config-amber": "^2.0.3",
|
||||||
"eslint-plugin-json": "^2.1.2"
|
"eslint-plugin-json": "^2.1.2"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user