diff --git a/.env.example b/.env.example index 81df6287..89985e8b 100644 --- a/.env.example +++ b/.env.example @@ -65,4 +65,5 @@ POSTER_ALBUM_ID= PUNCH_ALBUM_ID= SLAP_ALBUM_ID= TACKLE_ALBUM_ID= +WAVE_ALBUM_ID= XIAO_ALBUM_ID= diff --git a/README.md b/README.md index fd6afcde..a4432732 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/commands/roleplay/wave.js b/commands/roleplay/wave.js new file mode 100644 index 00000000..593138dc --- /dev/null +++ b/commands/roleplay/wave.js @@ -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}**._`; + } +}; diff --git a/package.json b/package.json index aaec5a49..ec6e8ca6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "88.3.5", + "version": "88.4.0", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {