示例#1
0
文件: main.py 项目: ctoneal/chatbot
# 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
    
示例#2
0
文件: runbot.py 项目: gvx/kibot
from bot import bot
import time

bot.connect('irc.ai.ru.nl', 6667)
time.sleep(2)
bot.join('#kiru')
bot.wait()

示例#3
0
文件: main.py 项目: stevommmm/ircp
#!/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))