Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple APILearn More
Well, that needs fixing :D
what was the bug that lead your bot to do that?
cave9033y@JoshBent There were two essential bugs, I knew them both before I even uploaded the bot, but I thought I fixed them already.
The first bug happens on startup, that sometimes without reason it just opens two sockets, which is impossible because they would technically override each other. They then cause each other to crash and reopen forever. I fixed it by restarting the bot if this happens.
The other bug was that sometimes the socket crashes while logging in, I'm not sure what causes the crash, so I fixed it by disabling the socket if no connection seem to be possible.
Apparently one of the bugs was not fixed, most likely the second one. I think it is due to an invalid login token, which didn't get renewed, but then again, why would the bot crash instead of throwing an error?
Hope you wanted such a detailed description. ^^'
cave9033y@stevemk14ebr why? I thought I fixed both bugs, it worked perfectly fine while I tested it on my PC and I was quite happy with the solution I came up with. The problem is that the bot probably doesn't renew the login token correctly after it expires, but I hadn't taken a deeper look into it, because the admin told me that we'll change the whole API anyways and I will have to start from scratch again.
Additionally it doesn't have to be my fault, that it opens two sockets for apparently no reason. I use a third-party library for websockets and it is really bad written, but the best library I found..
You rant yourself! That's new.. Haha
marcom4803yHehe, seems your admin is doing a good job :)
gitlog64953yDig deeper here.
You may find your admin posting a rant on you