# main.py # Christopher O'Neal # # Main loader program for IRC bot # import time from bot import bot if __name__ == '__main__': bot = bot() try: bot.connect() bot.flush() bot.mainloop() except: print "Interrupt" bot.disconnect() raise
from bot import bot import time bot.connect('irc.ai.ru.nl', 6667) time.sleep(2) bot.join('#kiru') bot.wait()
#!/bin/python # Import plugins from bot import bot from pl import * if __name__ == '__main__': try: bot.connect('irc.gamesurge.net', 6667, 'eri', ['#redditmc', '#llama']) bot.mainloop() except KeyboardInterrupt: bot.quit('Got Ctrl + C') except Exception as e: print e bot.quit(repr(e))