marsn3 / mudaetracker

Track the Top1000 Characters from Mudae
GNU General Public License v3.0
3 stars 4 forks source link

Not working as of 25 Nov 2022 #2

Open silverr909 opened 1 year ago

silverr909 commented 1 year ago

Hi, will you be able to recheck the codes? There seems to be some updates in python and the modules which cause errors. I tried to make some adjustments but the bot still did not run and only genereated a blank csv (I use Windows 10 by the way)

marsn3 commented 1 year ago

Sorry, only got around to looking at this now as I was quite busy the last week or so, but thanks for bringing this to my attention.

From testing it myself, the code currently seems to have two problems:

I'm not sure how long it'll take to fix the second problem, but for now if you want to use it manually you can switch to the bugfix branch and run the bot from there.

silverr909 commented 1 year ago

Hi thank you so much for the bugfix. When I try to run the bot.py it gave a bunch of "Task exception" image I use Spyder 3.9 and the newest version for all of the modules required. Do you happen to know what caused this? By running it manually, what do you mean haha I just assumed I need to go and rerun the bot.py file every time I want to update the top 1000 csv, is that right?

marsn3 commented 1 year ago

The exception you are getting seems to have to do with the second thing I mentioned, Discord probably renamed many elements from their site, which is why this program currently can't correctly send messages by itself.

With manually, I mean that you need to enter $top yourself after starting the bot, as capturing Mudae's output only relies on logging with the provided bot token.

Normally you could just run the file once and it would automatically go through all pages of $top by itself every 72 hours (or whatever you configured in config.py), but because of the issues I mentioned, that's currently not the case, so unfortunately you'll have to wait until I get that fixed.

silverr909 commented 1 year ago

Ooooh I see. Upon trying manually as you say, it appears I need to manually type the page name as well for the bot to copy (e.g. $top only copies page 1, if i want the bot to continue with page 2 i need to type $top $2 and so on). But other than that the bot is working fine with no other error. Thank you for your help, I will be waiting patiently for that fix (hopefully it is possible to fix).