Caught signals that would otherwise be fatal and saveless.
[halbot.git] / hal.py
blobb463f84a316f30a1ab2a7cdb40bbbeece0f42d92
1 #!/usr/bin/env python
2 import thread
4 import globals, connection, whois, basic_commands, web, factoids, reminders, panic
6 from perms import Perms
8 from connection import debug_console, process_events
9 from reminders import run_reminders
10 thread.start_new_thread(debug_console, ())
11 thread.start_new_thread(run_reminders, ())
12 if __name__ == "__main__":
13 process_events()
14 else:
15 thread.start_new_thread(process_events, ())