mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-16 00:12:32 +02:00
msg
This commit is contained in:
@@ -16,9 +16,9 @@ module.exports = class ChooseCommand extends Command {
|
||||
});
|
||||
}
|
||||
|
||||
run(message, args) {
|
||||
run(msg, args) {
|
||||
const { choices } = args;
|
||||
const choice = choices[Math.floor(Math.random() * choices.length)];
|
||||
return message.say(`I choose ${choice}!`);
|
||||
return msg.say(`I choose ${choice}!`);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user