Skip to content

Commit

Permalink
!reply command in test bot
Browse files Browse the repository at this point in the history
  • Loading branch information
cyteon committed Aug 31, 2024
1 parent fe73fe7 commit 176461c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/example_bot.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,13 @@ fn event_handler(bot, packet: event_handler.Packet) {
embed1,
])
}
"!reply" -> {
discord_gleam.reply(bot, message.d.channel_id, message.d.id, "Reply!", [])
}
_ -> Nil
}


case string.starts_with(message.d.content, "!kick ") {
True -> {
let args = string.split(message.d.content, " ")
Expand Down

0 comments on commit 176461c

Please sign in to comment.