Okay... this is very strange, but I believe I may have resolved the issue. All I did was create a new bot in ubot, and copied all of the code into it and then compiled it. Somehow, it's working flawlessly now. I'm baffled as to what has caused this issue, but relieved that it has been resolved. Thanks for your help everyone!