本文整理汇总了Python中twisted.words.protocols.irc.IRCClient.lineReceived方法的典型用法代码示例。如果您正苦于以下问题:Python IRCClient.lineReceived方法的具体用法?Python IRCClient.lineReceived怎么用?Python IRCClient.lineReceived使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类twisted.words.protocols.irc.IRCClient
的用法示例。
在下文中一共展示了IRCClient.lineReceived方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: lineReceived
# 需要导入模块: from twisted.words.protocols.irc import IRCClient [as 别名]
# 或者: from twisted.words.protocols.irc.IRCClient import lineReceived [as 别名]
def lineReceived(self, line):
IRCClient.lineReceived(self, line)
if self.debug: log.msg('In:: ' + line)
示例2: lineReceived
# 需要导入模块: from twisted.words.protocols.irc import IRCClient [as 别名]
# 或者: from twisted.words.protocols.irc.IRCClient import lineReceived [as 别名]
def lineReceived(self, line):
if self.debug >= 3: print "INCOMING LINE: %s" % line
IRCClient.lineReceived(self, line)
示例3: lineReceived
# 需要导入模块: from twisted.words.protocols.irc import IRCClient [as 别名]
# 或者: from twisted.words.protocols.irc.IRCClient import lineReceived [as 别名]
def lineReceived(self, line):
IRCClient.lineReceived(self, line)
self.factory.in_buffer.append({'time':time.time(),'message':line})
self.factory.broadcast(line)