mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-15 00:12:38 +02:00
Sleep and Wake Up Commands
This commit is contained in:
@@ -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._`;
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user