mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 14:19:11 +02:00
args and more
This commit is contained in:
@@ -7,16 +7,21 @@ module.exports = class KillCommand extends commando.Command {
|
||||
group: 'roleplay',
|
||||
memberName: 'kill',
|
||||
description: 'Kills someone. (;kill @User)',
|
||||
examples: [';kill @User']
|
||||
examples: [';kill @User'],
|
||||
args: [{
|
||||
key: 'thing',
|
||||
prompt: 'What do you want to roleplay with?',
|
||||
type: 'string'
|
||||
}]
|
||||
});
|
||||
}
|
||||
|
||||
run(message) {
|
||||
run(message, args) {
|
||||
if (message.channel.type !== 'dm') {
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
|
||||
}
|
||||
console.log(`[Command] ${message.content}`);
|
||||
let thingToRoleplay = message.content.split(" ").slice(1).join(" ");
|
||||
let thingToRoleplay = args.thing;
|
||||
return message.channel.send(`${message.author} *kills* ${thingToRoleplay}`);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user