mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 15:56:52 +02:00
Smile Command
This commit is contained in:
@@ -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=
|
||||
|
||||
@@ -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/))
|
||||
|
||||
@@ -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
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "116.33.0",
|
||||
"version": "116.34.0",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user