Hey Remy,
Sorry, but downloading, compiling, and running your project is not an option for me. I need you to provide details about what exactly you are experiencing.
Okidokes, I can work with that!!
I got back and ran the bot with and without the hook. This time I took the opportunity to save the logs in different files so you can analyse them.
The first one
withouthook.txt, demonstrates how it should work. And it's actually the version that is running with success at the moment.
The second one
withhook.txt should've demonstrated it not working, but somehow it did. More on this later.
The third one
withhook-notworking.txt is what I get after running the bot a second time, or any other time with almost no interval.
Ok, first observation is this: I only get debug info on After Command, never on Before Command, and that is strange.
Second observation: With the hook, when it worked, the event was never fired since I don't get the messages on all three 005 commands, or even a single one with all collected data.
Third observation: WIth the hook on and when it doesn't work, after getting the first OnRaw of 005, I get nothing more. The bot just stops receiving any other event.
I'm not sure it's a timing thing. Especially when everytime I restart the bot
without the hook, I never get a different outcome. It just works the same every time.
But when I add the hook, I'm now seeing two completely different behaviours and that is even more frustrating than it not working every time ARGH!!!!
Please have a good look at the log files and then, if you can, please give me stuff to do in order to better explain what could be happening here.
Cheers,
Gus