示例#1
0
文件: rules.py 项目: akshayms/ircbot
def nameList( bot, line, socket ):
	if bot.nick + ' @' in line:
		bot.activeNickList = []
		msg = helpers.getMsg( line )
		nameslist = []
		for i in msg.split():
			if i == bot.nick:
				continue
			if i == '366':
				nameslist.pop()
				break
			nameslist.append( i )
		bot.addNames( nameslist )
示例#2
0
def nameList(bot, line, socket):
    if bot.nick + ' @' in line:
        bot.activeNickList = []
        msg = helpers.getMsg(line)
        nameslist = []
        for i in msg.split():
            if i == bot.nick:
                continue
            if i == '366':
                nameslist.pop()
                break
            nameslist.append(i)
        bot.addNames(nameslist)
示例#3
0
文件: rules.py 项目: akshayms/ircbot
def topic( bot, line, socket ):
	msg = helpers.getMsg( line )
	bot.setChannelTopic( msg )
示例#4
0
def topic(bot, line, socket):
    msg = helpers.getMsg(line)
    bot.setChannelTopic(msg)