Wave Command

This commit is contained in:
Dragon Fire
2018-09-01 22:55:55 -04:00
parent d562fd9959
commit 96cbf197bd
4 changed files with 30 additions and 2 deletions
+1
View File
@@ -65,4 +65,5 @@ POSTER_ALBUM_ID=
PUNCH_ALBUM_ID=
SLAP_ALBUM_ID=
TACKLE_ALBUM_ID=
WAVE_ALBUM_ID=
XIAO_ALBUM_ID=
+2 -1
View File
@@ -15,7 +15,7 @@ Xiao is a Discord bot coded in JavaScript with
The bot is no longer available for invite. You can self-host the bot, or use her
on the [home server](https://discord.gg/sbMe32W).
## Commands (301)
## Commands (302)
### Utility:
* **eval**: Executes JavaScript code.
@@ -361,6 +361,7 @@ on the [home server](https://discord.gg/sbMe32W).
* **punch**: Punches a user.
* **slap**: Slaps a user.
* **tackle**: Tackles a user.
* **wave**: Waves at a user.
## Licensing
The bot is licensed under the GPL 3.0 license. See the file `LICENSE` for more
+26
View File
@@ -0,0 +1,26 @@
const RoleplayCommand = require('../../structures/commands/Roleplay');
const { WAVE_ALBUM_ID } = process.env;
module.exports = class WaveCommand extends RoleplayCommand {
constructor(client) {
super(client, {
name: 'wave',
group: 'roleplay',
memberName: 'wave',
description: 'Waves at a user.',
clientPermissions: ['ATTACH_FILES'],
albumID: WAVE_ALBUM_ID,
args: [
{
key: 'user',
prompt: 'What user do you want to roleplay with?',
type: 'user'
}
]
});
}
generateText(msg, user) {
return `_**${msg.author.username}** waves at **${user.username}**._`;
}
};
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "88.3.5",
"version": "88.4.0",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {