Skip to content

Commit

Permalink
Ignore bots
Browse files Browse the repository at this point in the history
  • Loading branch information
duncte123 committed Nov 12, 2024
1 parent 337fe27 commit 17e7354
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/kotlin/me/duncte123/io/Listener.kt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ class Listener : EventListener {

private fun onMessageReceived(event: MessageReceivedEvent) {
// ALWAYS IGNORE BOTS
if (event.isFromType(ChannelType.PRIVATE) && !event.author.isBot) {
if (event.author.isBot) {
return
}

if (event.isFromType(ChannelType.PRIVATE)) {
event.message
.reply("Hey you! Wishlist jock studio now! <https://store.steampowered.com/app/2115310/Jock_Studio?utm_source=io_bot>")
.queue()
Expand Down

0 comments on commit 17e7354

Please sign in to comment.