Exiled-Team / DiscordIntegration

GNU General Public License v3.0
13 stars 37 forks source link

[BUG] Keeps repeating same log #107

Closed Zenlet closed 2 years ago

Zenlet commented 2 years ago

Describe the bug The bot does not move onto the next message, it keeps reposting the same message over and over until it is restarted.

To Reproduce Steps to reproduce the behavior:

  1. have a bot
  2. kill lots of people ingame so damage logs appear
  3. look at discord
  4. see

Expected behavior for the bot to move onto the next log message, ie user joined the server

EXILED Version ("latest" is not a version): 5.1.1

Additional context i think it may only happen with messages that reach the character limit

Zenlet commented 2 years ago

It seems like hurting_player is causing the issue as i set hurting_player to false and it doesn't get stuck anymore.

jake-baxter commented 2 years ago

Also seems like its happening on intercom events as well

Zenlet commented 2 years ago

It only happens when the message gets full

jake-baxter commented 2 years ago

I'll have a look at it in a second... Just realised my VS is well out of date

Seems weird, but probably something to do with this line: https://github.com/Exiled-Team/DiscordIntegration/blob/c859137be24f4923b7e762279187305a213f0855/DiscordIntegration.Bot/Bot.cs#L184

jake-baxter commented 2 years ago

https://github.com/Exiled-Team/DiscordIntegration/pull/108 🤷‍♂️

SirNanos commented 2 years ago

For me it happens on hurt_player, player_triggering_tesla and player_intercom_speaking. It keeps getting me temp-IP banned off Discord's API for 1 hour and it's annoying. Yes, I have disabled the events_to_log events that are causing the issue but sometimes it repeats older logs when the bot restarts or the configs change back.