]> jfr.im git - erebus.git/blobdiff - bot.py
fixed typo in example trivia.json
[erebus.git] / bot.py
diff --git a/bot.py b/bot.py
index fe9be344525fa60a2a7bbdd47f53eb382f3a7236..e5bcebedc4b5bf5b049f2c00e667bde91d9fc9cb 100644 (file)
--- a/bot.py
+++ b/bot.py
@@ -3,8 +3,6 @@
 # Erebus IRC bot - Author: John Runyon
 # "Bot" and "BotConnection" classes (handling a specific "arm")
 
-#TODO: error checking
-
 import socket, sys
 
 #bots = {'erebus': bot.Bot(nick='Erebus', user='erebus', bind='', server='irc.quakenet.org', port=6667, realname='Erebus')}
@@ -93,7 +91,7 @@ class Bot(object):
                                self.parent.user(nick).quit()
                                del self.parent.users[nick.lower()]
 
-               elif pieces[1] == "MODE": #TODO
+               elif pieces[1] == "MODE": #TODO parse for ops/voices (at least)
                        pass
 
        
@@ -120,7 +118,7 @@ class Bot(object):
                                                pieces.pop(1)
 
                else: # message was sent to a channel
-                       chan = self.parent.channel(target) #TODO check if bot's on channel --- in Erebus.channel() maybe?
+                       chan = self.parent.channel(target)
                        try:
                                if msg[0] == '*': # message may be addressed to bot by "*BOTNICK" trigger?
                                        if pieces[0][1:].lower() == self.nick.lower():