Skip to content
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.

Commit

Permalink
[fix] Hotfix recursive meme
Browse files Browse the repository at this point in the history
  • Loading branch information
5HT2 committed Dec 17, 2020
1 parent 326e782 commit 7b9df99
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,10 @@ object TicketCommand : BotCommand(
config?.ticketCreateChannel?.let {
if (event.message.channel.id != it) return@asyncListener

if (author?.bot == true && author.id != Main.client.botUser.id) {
event.message.delete()
if (author?.bot == true) {
if (author.id != Main.client.botUser.id) {
event.message.delete() // we clean up our own messages later
}
return@asyncListener
}

Expand Down

1 comment on commit 7b9df99

@not-ivy
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you mean: recursive

Please sign in to comment.