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
+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._`;
}
};