Closed MarcTowler closed 5 years ago
Seen it in the archive command, double spacing between arguments causes a blank argument to be sent to the API.
Need to add some protection in the bot to discard arguments that are blank spaces.
let messageArray = message.content.replace(/ +/g, ' ').split(" "); was used to fit
let messageArray = message.content.replace(/ +/g, ' ').split(" ");
Seen it in the archive command, double spacing between arguments causes a blank argument to be sent to the API.
Need to add some protection in the bot to discard arguments that are blank spaces.