[TASK] Add bot modes.

This commit is contained in:
Jan Philipp Timme 2015-06-01 18:26:52 +02:00
parent 8180ffb826
commit 1e3049bacc
1 changed files with 2 additions and 0 deletions

View File

@ -26,6 +26,8 @@ class MonitorBot(irc.IRCClient):
# callbacks for events
def signedOn(self):
"""Called when bot has succesfully signed on to server."""
self.mode(self.nickname, False, 'x')
self.mode(self.nickname, True, 'B')
self.join(self.factory.channel)
def joined(self, channel):