diff --git a/dr.botzo.py b/dr.botzo.py index 9726575..87481b4 100755 --- a/dr.botzo.py +++ b/dr.botzo.py @@ -42,10 +42,15 @@ def on_privmsg(connection, event): admin_unlocked = True except NoOptionError: pass + # admin commands + + # join channel if what.split(' ')[0] == 'join' and admin_unlocked: connection.join(what.split(' ')[1]) + # part channel, with message elif what.split(' ')[0] == 'part' and admin_unlocked: connection.part(what.split(' ')[1], ' '.join(what.split(' ')[2:])) + # quit server, with message elif what.split(' ')[0] == 'quit' and admin_unlocked: connection.quit(' '.join(what.split(' ')[1:]))