From d13b086885668a248f4a16e4c38fe49b01dcc2b1 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 2 Sep 2018 22:37:22 -0400 Subject: [PATCH] Wink Command --- .env.example | 3 +++ README.md | 3 ++- commands/roleplay/wink.js | 26 ++++++++++++++++++++++++++ package.json | 2 +- 4 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 commands/roleplay/wink.js diff --git a/.env.example b/.env.example index 89985e8b..6573d385 100644 --- a/.env.example +++ b/.env.example @@ -64,6 +64,9 @@ POKE_ALBUM_ID= POSTER_ALBUM_ID= PUNCH_ALBUM_ID= SLAP_ALBUM_ID= +SLEEP_ALBUM_ID= TACKLE_ALBUM_ID= +WAKE_UP_ALBUM_ID= WAVE_ALBUM_ID= +WINK_ALBUM_ID= XIAO_ALBUM_ID= diff --git a/README.md b/README.md index 57159de7..78b1d02a 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 (304) +## Commands (305) ### Utility: * **eval**: Executes JavaScript code. @@ -364,6 +364,7 @@ on the [home server](https://discord.gg/sbMe32W). * **tackle**: Tackles a user. * **wake-up**: Wakes up a user. * **wave**: Waves at a user. +* **wink**: Winks 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/wink.js b/commands/roleplay/wink.js new file mode 100644 index 00000000..a9812323 --- /dev/null +++ b/commands/roleplay/wink.js @@ -0,0 +1,26 @@ +const RoleplayCommand = require('../../structures/commands/Roleplay'); +const { WINK_ALBUM_ID } = process.env; + +module.exports = class WinkCommand extends RoleplayCommand { + constructor(client) { + super(client, { + name: 'wink', + group: 'roleplay', + memberName: 'wink', + description: 'Winks at a user.', + clientPermissions: ['ATTACH_FILES'], + albumID: WINK_ALBUM_ID, + args: [ + { + key: 'user', + prompt: 'What user do you want to roleplay with?', + type: 'user' + } + ] + }); + } + + generateText(msg, user) { + return `_**${msg.author.username}** winks at **${user.username}**._`; + } +}; diff --git a/package.json b/package.json index 1f5c1b59..43827040 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "88.5.0", + "version": "88.6.0", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {