Yep, sounds like you've patched your client to OSBot.
Try opening the origin OSBot.jar file, click the "Patch client" button and then unpatch your game client.
I might be wrong but you could do something like:
If widget exists and contains message(int 1-20 minutes)
But another easy option could be to just store the time in memory from where you teleported and count down 20 mins?