args and more

This commit is contained in:
Daniel Odendahl Jr
2017-03-25 04:16:27 +00:00
parent 8dd6ec1f9b
commit e2a4a92990
82 changed files with 1089 additions and 1021 deletions
+3 -7
View File
@@ -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}!`);
}
};