Did I find the right examples for you? yes no

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/s/i/sirc-HEAD/bot.py   sirc(Download)
    def on_mode(self, c, e):
        nick = e.source.nick
        target = e.target
        if irc.client.is_channel(target):
            self._log(target, config.NOTIFY_NAME, '[%s] by <%s>.' % (' '.join(e.arguments), nick))
    def on_topic(self, c, e):
        nick = e.source.nick
        target = e.target
        new_topic = e.arguments[0]
        self._log(target, config.NOTIFY_NAME, '<%s> changed the topic to: "%s".' % (nick, new_topic))
        for target, ch in self.channels.items():
            if ch.has_user(before):
                self._log(target, config.NOTIFY_NAME, '<%s> is now known as <%s>.' % (before, after))
 
    def on_join(self, c, e):
        nick = e.source.nick
        self._log(e.target, config.NOTIFY_NAME, '<%s> has joined.' % nick)
    def on_part(self, c, e):
        nick = e.source.nick
        self._log(e.target, config.NOTIFY_NAME, '<%s> has left.' % nick)
 
    def on_quit(self, c, e):