mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-19 05:51:42 +02:00
Huge Array Change
This commit is contained in:
@@ -17,7 +17,11 @@ class RouletteCommand extends commando.Command {
|
||||
if(!message.channel.permissionsFor(this.client.user).hasPermission('READ_MESSAGES')) return;
|
||||
}
|
||||
console.log("[Command] " + message.content);
|
||||
message.channel.sendMessage("I choose " + message.guild.members.random().displayName + "!");
|
||||
if(message.channel.type === 'dm') {
|
||||
message.channel.sendMessage(':x: Error! This is a DM!');
|
||||
} else {
|
||||
message.channel.sendMessage("I choose " + message.guild.members.random().displayName + "!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user