went case insensitive
This commit is contained in:
2
bot.js
2
bot.js
@@ -462,7 +462,7 @@ client.on('message', message => {
|
|||||||
let cmd = args[0];
|
let cmd = args[0];
|
||||||
|
|
||||||
// todo make case insensitive
|
// todo make case insensitive
|
||||||
switch (cmd) {
|
switch (cmd.toLowerCase()) {
|
||||||
// Reply commands
|
// Reply commands
|
||||||
case 'command':
|
case 'command':
|
||||||
case 'commands':
|
case 'commands':
|
||||||
|
Reference in New Issue
Block a user