Fixed identation.
Cleaned up the code a little.
Add catch all for handle_event.
Fix regex.
Bug fixes; Added function to get bot id.