Skip to content

Commit

Permalink
Made ",insult" insult the executor
Browse files Browse the repository at this point in the history
  • Loading branch information
Nickster258 committed Mar 19, 2024
1 parent d7dd442 commit 2c9c547
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/kotlin/org/openredstone/chad/commands/Command.kt
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,8 @@ fun helpCommand(commands: Commands) = command {
}

fun insultCommand(insults: List<String>) = command {
val target by required()
reply {
val targetName = if (target == "me") sender.username else target
insults.random().replace("%USER%", targetName)
insults.random().replace("%USER%", sender.username)
}
}

Expand Down

0 comments on commit 2c9c547

Please sign in to comment.