mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 06:42:50 +02:00
args and more
This commit is contained in:
@@ -13,7 +13,8 @@ module.exports = class RouletteCommand extends commando.Command {
|
||||
group: 'response',
|
||||
memberName: 'roulette',
|
||||
description: 'Chooses a random member. (;roulette Who is the best?)',
|
||||
examples: [";roulette Who is the best?"]
|
||||
examples: [";roulette Who is the best?"],
|
||||
guildOnly: true
|
||||
});
|
||||
}
|
||||
|
||||
@@ -22,11 +23,6 @@ module.exports = class RouletteCommand extends commando.Command {
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
|
||||
}
|
||||
console.log(`[Command] ${message.content}`);
|
||||
if (message.channel.type !== 'dm') {
|
||||
return message.channel.send(`I choose ${message.guild.members.random().displayName}!`);
|
||||
}
|
||||
else {
|
||||
return message.channel.send(':x: Error! This command does not work in DM!');
|
||||
}
|
||||
return message.channel.send(`I choose ${message.guild.members.random().displayName}!`);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user