]> jfr.im git - erebus.git/commitdiff
move TODOs in code to github issues
authorzonidjan <redacted>
Fri, 15 Sep 2017 16:32:15 +0000 (11:32 -0500)
committerzonidjan <redacted>
Fri, 15 Sep 2017 16:32:15 +0000 (11:32 -0500)
bot.py
modules/help.py
modules/trivia.py

diff --git a/bot.py b/bot.py
index 6324ecb1754e8aff9968011f291af038b56694bf..f17eae33a95bd5da0d17a60cc8687991a78ecd45 100644 (file)
--- a/bot.py
+++ b/bot.py
@@ -98,7 +98,7 @@ class Bot(object):
        def _gotping(self, pieces):
                self.conn.send("PONG %s" % (pieces[1]))
                self._checknick()
-       def _goterror(self, pieces): #TODO handle more gracefully
+       def _goterror(self, pieces):
                curs = self.parent.db.cursor()
                curs.execute("UPDATE bots SET connected = 0")
                curs.close()
index fbe31f4416bb153b1d5c0c10f6c77fd2a76c7ff0..fe3340cc3721785c7062888562cc906801f5a682 100644 (file)
@@ -110,7 +110,6 @@ def _genhelp(bot, user, chan, realtarget, *args):
 
 @lib.hook(glevel=1, needchan=False)
 @lib.help(None, "generates help file", "default path: ./help/<level>.txt", "config as: [help]", "path = ./help/%d.txt")
-#TODO: use args... "[@<module>] [#<level>] [<file>]"
 def genhelp(bot, user, chan, realtarget, *args):
        ret = _genhelp(bot, user, chan, realtarget, *args)
        if not isinstance(ret, BaseException):
index dfa0b7dc5d93566e49c2ccd713839e2eaf365665..89d62d5d881c7a2d4d3881494d16d52e5b834a5b 100644 (file)
@@ -110,14 +110,6 @@ class TriviaState(object):
                        self.nextquestiontimer.cancel()
                        self.nextquestiontimer = None
                except: pass
-#TODO remove if the replacement works
-#              if threading is not None and threading._Timer is not None:
-#                      if isinstance(self.steptimer, threading._Timer):
-#                              self.steptimer.cancel()
-#                      if isinstance(self.nextquestiontimer, threading._Timer):
-#                              self.nextquestiontimer.cancel()
-#                              self.nextquestiontimer = None
-#              self.savedb()
 
        def savedb(self): #returns whether or not it was able to save
                if json is not None and json.dump is not None:
@@ -138,7 +130,7 @@ class TriviaState(object):
                                                os.unlink(tmpfn)
                                        except OSError: # temp file is already gone
                                                pass
-                                       raise #TODO: we may be better off just swallowing exceptions?
+                                       raise # we may be better off just swallowing exceptions?
                return False
 
        def getchan(self):