Skip to content

Commit

Permalink
Update MessageHandler.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
caffeine01 authored Jul 24, 2022
1 parent c3ae657 commit 552981e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/org/caffeine/chaos/MessageHandler.kt
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ suspend fun handleMessage(event : MessageCreateEvent, client : Client) {

//set args value as the message content split by spaces into a list
//and removes the first element (the actual command)
val args = event.message.content.lowercase().replaceFirst(config.prefix, "").split(" ").toMutableList()
val args = event.message.content.lowercase().replaceFirst(client.config.prefix, "").split(" ").toMutableList()
args.removeAt(0)

//finally, execute the command
Expand Down

0 comments on commit 552981e

Please sign in to comment.