Smile Command

This commit is contained in:
Dragon Fire
2020-06-19 00:12:05 -04:00
parent 5b8dfb8302
commit bb2e455acf
4 changed files with 33 additions and 2 deletions
+1
View File
@@ -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=
+3 -1
View File
@@ -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/))
+28
View File
@@ -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}**` : ''}._`;
}
};
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "116.33.0",
"version": "116.34.0",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {