@ -16,7 +16,7 @@ func ProcessCommand(s *discordgo.Session, m *discordgo.MessageCreate) {
command := strings.Split(m.Content, " ")
for _, v := range modules.Commands {
if v.Name == command[0] {
if v.Name == strings.toLower(command[0]) {
v.Handler(s, m, command)
return
}
@ -25,7 +25,7 @@ fun establishConnection() {
fun processMessage(msg: List<String>) {
when (msg[0]) {
when (msg[0].toLowerCase()) {
"leave" -> {
Bukkit.getPlayer(msg[1])?.kickPlayer(Strings.kickVoiceChannel)
@ -80,4 +80,4 @@ class WSListener : WebSocketListener() {
establishConnection()