mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-22 01:57:54 +02:00
Fix Choices Finally
This commit is contained in:
@@ -20,7 +20,7 @@ module.exports = class ChooseCommand extends commando.Command {
|
|||||||
}
|
}
|
||||||
console.log("[Command] " + message.content);
|
console.log("[Command] " + message.content);
|
||||||
if(message.content.includes(" | ")) {
|
if(message.content.includes(" | ")) {
|
||||||
let choices = message.content.split(" | ").slice(1);
|
let choices = message.content.split(" ").slice(1).join(" ").split(' | ');
|
||||||
let choice1 = choices[0];
|
let choice1 = choices[0];
|
||||||
let choice2 = choices[1];
|
let choice2 = choices[1];
|
||||||
let randomChoice = [choice1, choice2];
|
let randomChoice = [choice1, choice2];
|
||||||
|
|||||||
Reference in New Issue
Block a user