odsum/TinyChatBot

user leaving notification

Closed this issue ยท 2 comments

How do I turn off notification that displays when a user is leaving the chatroom?

Actually disregard this issue. I checked on line 1519 with the following code:

def on_quit(self, uid):

    if pinylib.CONFIG.B_VERBOSE:
        if self.score < 2:
            _user = self.users.search(uid)
            msg = unicode("๐˜ญ๐˜ฆ๐˜ง๐˜ต ๐˜ต๐˜ฉ๐˜ฆ ๐˜ณ๐˜ฐ๐˜ฐ๐˜ฎ", 'utf-8')
            if _user is not None:
                self.handle_msg('\n %s %s %s' % (self.boticon, _user.nick, msg))

and changed it to if self.score > 2:

Thank god for this bot because it really helps against annoying spammers.

@kiratsuchi Thanks for posting your solution!