[TASK] Add bot modes.

This commit is contained in:
Jan Philipp Timme 2015-06-01 18:26:52 +02:00
parent 8180ffb826
commit 1e3049bacc

View File

@ -26,6 +26,8 @@ class MonitorBot(irc.IRCClient):
# callbacks for events # callbacks for events
def signedOn(self): def signedOn(self):
"""Called when bot has succesfully signed on to server.""" """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) self.join(self.factory.channel)
def joined(self, channel): def joined(self, channel):