Exiled-Team / DiscordIntegration

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

[BUG] Bot status doesn't work properly #129

Closed Oyplap closed 2 years ago

Oyplap commented 2 years ago

Describe the bug The bot shows only 2 or 1 player is currently connected to the server, while there are actually 20 people connected.

To Reproduce Steps to reproduce the behavior:

  1. Wait for players to join the server.
  2. After having 10 players or more, the bot doesn't count it correctly anymore. (not sure if it is exactly 10 or a higher number).

Expected behavior Bot status should show the correct amount of currently connected players

Server logs https://pastebin.com/w9LsKCeJ

EXILED Version ("latest" is not a version): 5.3.0-rc.1

Results of show plugins command in console:

[2022-08-20 15:52:55.574 +02:00] Total number of plugins: 19
                                 Enabled plugins: 19
                                 Disabled plugins: 0

                                 CedMod:
                                        - Author: ced777ric#8321
                                        - Version: 3.2.0
                                        - Required Exiled Version: 5.0.0
                                        - Prefix: cm
                                        - Priority: Highest
                                 Exiled.Events:
                                        - Author: Exiled Team
                                        - Version: 5.3.0.0
                                        - Required Exiled Version: 5.3.0.0
                                        - Prefix: exiled_events
                                        - Priority: Highest
                                 CiOnStart:
                                        - Author: Build
                                        - Version: 1.0.2
                                        - Required Exiled Version: 5.1.3
                                        - Prefix: ci_on_start
                                        - Priority: Higher
                                 WhoAreMyTeammates:
                                        - Author: XoMiya-WPC, TheUltiOne & Build
                                        - Version: 4.2.0
                                        - Required Exiled Version: 5.3.0
                                        - Prefix: WhoAreMyTeammates
                                        - Priority: Medium
                                 Exiled.CustomRoles:
                                        - Author: Exiled Team
                                        - Version: 5.3.0.0
                                        - Required Exiled Version: 5.3.0.0
                                        - Prefix: exiled_custom_roles
                                        - Priority: Medium
                                 Exiled.CreditTags:
                                        - Author: Babyboucher20 & iRebbok & Exiled Team
                                        - Version: 5.3.0.0
                                        - Required Exiled Version: 5.3.0.0
                                        - Prefix: exiled_credits
                                        - Priority: Medium
                                 DiscordIntegration:
                                        - Author: DiscordIntegration
                                        - Version: 6.0.4.0
                                        - Required Exiled Version: 5.2.0
                                        - Prefix: discord_integration
                                        - Priority: Medium
                                 Ultimate-AFK:
                                        - Author: SrLicht
                                        - Version: 5.0.2
                                        - Required Exiled Version: 5.2.3
                                        - Prefix: Ultimate_Afk
                                        - Priority: Medium
                                 Exiled.Permissions:
                                        - Author: Exiled Team
                                        - Version: 5.3.0.0
                                        - Required Exiled Version: 5.3.0.0
                                        - Prefix: exiled_permissions
                                        - Priority: Medium
                                 CustomBadges:
                                        - Author: xRoier
                                        - Version: 1.0.0
                                        - Required Exiled Version: 2.3.3
                                        - Prefix: custombadges
                                        - Priority: Medium
                                 RemoteKeycard:
                                        - Author: Beryl (Maintained by Parkeymon)
                                        - Version: 3.1.3
                                        - Required Exiled Version: 5.2.0
                                        - Prefix: remotekeycard
                                        - Priority: Medium
                                 Common Utilities:
                                        - Author: Joker119
                                        - Version: 6.2.0.0
                                        - Required Exiled Version: 5.2.1
                                        - Prefix: CommonUtilities
                                        - Priority: Medium
                                 Exiled.CustomItems:
                                        - Author: Exiled Team
                                        - Version: 5.3.0.0
                                        - Required Exiled Version: 5.3.0.0
                                        - Prefix: exiled_custom_items
                                        - Priority: Medium
                                 Admin Tools:
                                        - Author: Originally by Galaxy119. Modifications by KoukoCocoa & Thomasjosif
                                        - Version: 5.1.0.0
                                        - Required Exiled Version: 5.1.0
                                        - Prefix: AT
                                        - Priority: Medium
                                 RaimbowWaitingScreen:
                                        - Author: JesusQC
                                        - Version: 1.0.0.0
                                        - Required Exiled Version: 5.3.0.0
                                        - Prefix: RaimbowWaitingScreen
                                        - Priority: Medium
                                 Scp008X:
                                        - Author: DGvagabond
                                        - Version: 3.1.2.0
                                        - Required Exiled Version: 5.2.1
                                        - Prefix: scp008_x
                                        - Priority: Medium
                                 VcPatch:
                                        - Author: Cyanox & Mitzey
                                        - Version: 1.0.0.0
                                        - Required Exiled Version: 5.3.0.0
                                        - Prefix: vc_patch
                                        - Priority: Medium
                                 ShowZombieCount:
                                        - Author: Build
                                        - Version: 2.0.3
                                        - Required Exiled Version: 5.2.2
                                        - Prefix: show_zombie_count
                                        - Priority: Medium
                                 ScpSwap:
                                        - Author: Build
                                        - Version: 1.1.1
                                        - Required Exiled Version: 5.0.0
                                        - Prefix: ScpSwap
                                        - Priority: Medium

Additional context status_update_interval is set to 20

Bot logs show on all my servers:

08/20/2022 15:45:36 DequeueMess [ERROR] Object reference not set to an instance of an object.This is likely caused because DiscordIntegration.Bot.ConfigObjects.LogChannel is not a valid channel ID, or an invalid GuildID: 675279655762132994. If the GuildID is correct, to avoid this error, disabling the logging of events targeting channels that you've purposefully set to an invalid channel ID.Enable debug mode to show the contents of the messages causing this error.

But logging still works and I did have set the correct channel id's and GuildID's

joker-119 commented 2 years ago

I'll fix that error message to give the actual channel that is broken again, but that'd be unrelated to this issue. The only reason it would break after a certain point is if the bot was getting ratelimited on status updates, try increasing that config interval up to 30 and see if it helps.

NishimiyaRaf commented 2 years ago

I have exactly the same problem. status_update_interval: 30 didn't help🥺

Oyplap commented 2 years ago

I have exactly the same problem.

status_update_interval: 30 didn't help🥺

Joker uploaded the fix here: https://discord.com/channels/656673194693885975/817074252724699136/1011072682751709205

And also download this one if you need it: https://discord.com/channels/656673194693885975/817074252724699136/1011050894353244160

joker-119 commented 2 years ago

I'll be providing these as a full version update later today.