SideProjectGuys / invite-manager-bot

A discord bot that tracks invites and much more
https://docs.invitemanager.co/
GNU General Public License v3.0
168 stars 135 forks source link

Error on startup while the bot is in a big server or upon joining one. #204

Open Totti56 opened 3 years ago

Totti56 commented 3 years ago

Whenever the bot starts up while being in this big server or upon joining this big server it shows this huge list of the same error. After the error the bot just proceeds. However, I think that this error is the cause of certain data missing in the database, seen whenever I do !leaderboard and obvious large invites aren't being shown. image So, my question is if there is any way to fix this problem? Thank you.

Oh and also, there was this one error where stage channels weren't recognized, not sure if this error can be fatal.

Totti56 commented 3 years ago

It seems like I managed to fix this error. However, it seems like this error was unrelated to the issue where when I use !leaderboard it still shows missing invites at the top invites, while they do exist in the database table. Any clue on why !leaderboard has missing stats?

chaun14 commented 3 years ago

I've also randomly the leaderboard missing entries issue. It seems like the leaderboard cache isn't working correctly when there are a large amount of data.

Totti56 commented 3 years ago

I've also randomly the leaderboard missing entries issue. It seems like the leaderboard cache isn't working correctly when there are a large amount of data.

Gotcha! So, there is not really a way to fix this problem? :(

Also, I managed to fix the error from the top by updating the discord js wrapper Eris, because we have stage channels in our server which are new. However, by updating the package there are a few errors caused by that or warnings where the script does not recognize certain these old function names etc. idk. But yeah, my main issue I have at the moment is the leaderboard cache.

chaun14 commented 3 years ago

I've never really searched to fix this problem.

You can find the project with updated eris version in some forks.

PS: Eris is not a discord.js wrapper

Totti56 commented 3 years ago

I've never really searched to fix this problem.

You can find the project with updated eris version in some forks.

PS: Eris is not a discord.js wrapper

Yes thank you, oops sorry I'm not really an expert in stuff like this lol, thank you for correcting me :D