diff --git a/.env.example b/.env.example index 0fa9239a..e02db669 100644 --- a/.env.example +++ b/.env.example @@ -85,6 +85,7 @@ PUNCH_ALBUM_ID= SHREK_ALBUM_ID= SLAP_ALBUM_ID= SLEEP_ALBUM_ID= +SMILE_ALBUM_ID= WAKE_UP_ALBUM_ID= WAVE_ALBUM_ID= WINK_ALBUM_ID= diff --git a/README.md b/README.md index e24754de..60bf0f09 100644 --- a/README.md +++ b/README.md @@ -227,7 +227,7 @@ in the appropriate channel's topic to use it. ## Commands -Total: 495 +Total: 496 ### Utility: @@ -785,6 +785,7 @@ Total: 495 * **punch:** Punches a user. * **slap:** Slaps a user. * **sleep:** Puts a user to sleep. +* **smiles:** Smiles at a user. * **wake-up:** Wakes up a user. * **wave:** Waves at a user. * **wink:** Winks at a user. @@ -1122,6 +1123,7 @@ here. * shrek ([API](https://apidocs.imgur.com/)) * slap ([API](https://apidocs.imgur.com/)) * sleep ([API](https://apidocs.imgur.com/)) + * smile ([API](https://apidocs.imgur.com/)) * wake-up ([API](https://apidocs.imgur.com/)) * wave ([API](https://apidocs.imgur.com/)) * wink ([API](https://apidocs.imgur.com/)) diff --git a/commands/roleplay/smile.js b/commands/roleplay/smile.js new file mode 100644 index 00000000..eb7459fe --- /dev/null +++ b/commands/roleplay/smile.js @@ -0,0 +1,28 @@ +const ImgurAlbumCommand = require('../../structures/commands/ImgurAlbum'); +const { SMILE_ALBUM_ID } = process.env; + +module.exports = class SmileCommand extends ImgurAlbumCommand { + constructor(client) { + super(client, { + name: 'smile', + group: 'roleplay', + memberName: 'smile', + description: 'Smiles at a user.', + clientPermissions: ['ATTACH_FILES'], + albumID: SMILE_ALBUM_ID, + args: [ + { + key: 'user', + prompt: 'What user do you want to roleplay with?', + type: 'user', + default: msg => msg.author + } + ] + }); + } + + generateText(msg, user) { + const noUserAuthor = msg.author.id !== user.id; + return `_**${msg.author.username}** smiles${noUserAuthor ? ` at **${user.username}**` : ''}._`; + } +}; diff --git a/package.json b/package.json index 141beb34..04465583 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "116.33.0", + "version": "116.34.0", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {