Sleep and Wake Up Commands

This commit is contained in:
Daniel Odendahl Jr
2018-09-02 12:40:12 +00:00
parent c8d50b6258
commit 369a592e38
5 changed files with 62 additions and 3 deletions
+3 -1
View File
@@ -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 (302)
## Commands (304)
### Utility:
* **eval**: Executes JavaScript code.
@@ -360,7 +360,9 @@ on the [home server](https://discord.gg/sbMe32W).
* **poke**: Pokes a user.
* **punch**: Punches a user.
* **slap**: Slaps a user.
* **sleep**: Puts a user to sleep.
* **tackle**: Tackles a user.
* **wake-up**: Wakes up a user.
* **wave**: Waves at a user.
## Licensing
+2 -1
View File
@@ -14,7 +14,8 @@ module.exports = class EvolveCommand extends RoleplayCommand {
{
key: 'user',
prompt: 'What user do you want to roleplay with?',
type: 'user'
type: 'user',
default: msg => msg.author
}
]
});
+28
View File
@@ -0,0 +1,28 @@
const RoleplayCommand = require('../../structures/commands/Roleplay');
const { SLEEP_ALBUM_ID } = process.env;
module.exports = class SleepCommand extends RoleplayCommand {
constructor(client) {
super(client, {
name: 'sleep',
aliases: ['fall-asleep'],
group: 'roleplay',
memberName: 'sleep',
description: 'Puts a user to sleep.',
clientPermissions: ['ATTACH_FILES'],
albumID: SLEEP_ALBUM_ID,
args: [
{
key: 'user',
prompt: 'What user do you want to roleplay with?',
type: 'user',
default: msg => msg.author
}
]
});
}
generateText(msg, user) {
return `_**${user.username}** falls asleep._`;
}
};
+28
View File
@@ -0,0 +1,28 @@
const RoleplayCommand = require('../../structures/commands/Roleplay');
const { WAKE_UP_ALBUM_ID } = process.env;
module.exports = class WakeUpCommand extends RoleplayCommand {
constructor(client) {
super(client, {
name: 'wake-up',
aliases: ['awaken', 'awake'],
group: 'roleplay',
memberName: 'wake-up',
description: 'Wakes up a user.',
clientPermissions: ['ATTACH_FILES'],
albumID: WAKE_UP_ALBUM_ID,
args: [
{
key: 'user',
prompt: 'What user do you want to roleplay with?',
type: 'user',
default: msg => msg.author
}
]
});
}
generateText(msg, user) {
return `_**${user.username}** wakes up._`;
}
};
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "88.4.2",
"version": "88.5.0",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {