Nixeld / MudaeAutoBot

python bot that uses strictly the **Discord API** to Roll,Claim,and Kakera Snipe in Mudae. 5/10/21 project converted over to discum library
Apache License 2.0
12 stars 2 forks source link

Bot loses connection to gateway after a few hours #1

Closed ghost closed 3 months ago

ghost commented 9 months ago

Does this version of the bot eventually lose access to the Discord Gateway and stops working like vivinano's version? The bot can't be ran overnight/endlessly, and has to be restarted manually.

image Looks like this ^

ghost commented 9 months ago

I've been running it on a cloud platform for more than a month now on multiple accounts and I have never had it stop working. I think it might be a network related issue on your end. You can try to update discum to the latest version which is currently 1.4.1 if it is not already on that version.

I already have discum updated. Do you have any other potential solutions?

GuilleDiazFentanes commented 9 months ago

@magicalhobo2001 you can try my other solution until u fix the other one! its very simple only 3 files and no need to input more than token guild/channel id

HANSSS9631 commented 8 months ago

image_2023-12-24_143138095 I see what you where talking about and found that it was some issue with discum and it randomly restarted itself after a long time. Then rolls but does not receive any msg from the channel and stops rolling because it thinks mudae is down. Then disconnects again because it does not receive any msg from the channel. There is no way to fix it unless we switch discum to discord.py-self to test that one instead @Nixeld

Nixeld commented 3 months ago

There seems to be a problem with Discum's auto reconnect feature. A workaround for this issue is to disable auto reconnect and restart the script using other methods.

An AutoReconnect.py has been added to start and automatically restart MudaeAutoBot whenever it disconnects. Please run the bot with AutoReconnect.py from now onwards.

Thanks @HentaiRyuu for the workaround.