Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #The way a bot will not disconnect/crash on a crash.
- # By Aha2Y <3
- ##
- import traceback
- try:
- <bot shit crap here>
- except:
- fp = StringIO.StringIO()
- traceback.print_exc(file=fp)
- message = fp.getvalue()
- # Send Error to the IRC channel. (Of underscorex3 :P)
- irc.send('privmsg underscorex3 :error occured. %s\r\n' % (repr(message))
Add Comment
Please, Sign In to add comment