mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 07:46:43 +02:00
Sleep and Wake Up Commands
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
@@ -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._`;
|
||||
}
|
||||
};
|
||||
@@ -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
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "88.4.2",
|
||||
"version": "88.5.0",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user