made !whitelist command case insensitive

This commit is contained in:
JoeShimo 2019-08-01 15:45:42 +01:00
parent 66ccc6f616
commit 4e44065fae
2 changed files with 1 additions and 2 deletions

View File

@ -3,7 +3,6 @@ version: 1.0.0
author: Joe Shimell
main: uk.co.angrybee.joe.DiscordWhitelister
description: Discord whitelister bot.
api-version: 1.13
permissions:
discordbot:

View File

@ -78,7 +78,7 @@ public class ServerDiscordClient extends ListenerAdapter
}
}
if(messageContents.contains("!whitelist") && userHasPerms)
if(messageContents.toLowerCase().contains("!whitelist") && userHasPerms)
{
String nameToWhitelist = messageContents;
nameToWhitelist = nameToWhitelist.toLowerCase();