mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Bite Command
This commit is contained in:
@@ -74,6 +74,7 @@ XIAO_GITHUB_REPO_NAME=
|
||||
XIAO_GITHUB_REPO_USERNAME=
|
||||
|
||||
# Imgur album IDs
|
||||
BITE_ALBUM_ID=
|
||||
BLUSH_ALBUM_ID=
|
||||
BRO_HOOF_ALBUM_ID=
|
||||
CELEBRATE_ALBUM_ID=
|
||||
|
||||
@@ -256,7 +256,7 @@ in the appropriate channel's topic to use it.
|
||||
|
||||
## Commands
|
||||
|
||||
Total: 543
|
||||
Total: 544
|
||||
|
||||
### Utility:
|
||||
|
||||
@@ -843,6 +843,7 @@ Total: 543
|
||||
|
||||
### Roleplay:
|
||||
|
||||
* **bite:** Bites a user.
|
||||
* **blush:** Blushes at a user.
|
||||
* **bro-hoof:** Gives a user a bro hoof.
|
||||
* **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"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "^7.8.1",
|
||||
"eslint": "^7.9.0",
|
||||
"eslint-config-amber": "^2.0.3",
|
||||
"eslint-plugin-json": "^2.1.2"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user