This commit is contained in:
dave 2017-11-16 20:24:12 -08:00
parent b142c501e7
commit 4daf05858b
2 changed files with 0 additions and 4 deletions

View File

@ -79,7 +79,6 @@ class Calc(ModuleBase):
seconds = int(remaining - (minutes * 60))
return "Please wait %s minute(s) and %s second(s)." % (minutes, seconds)
# @regex(r'(?:^\.?(?:calc|quote)(?:\s+?(?:([^=]+)(?:\s?(=)\s?(.+)?)?)?)?)')
@regex(r'(?:^\.?(?:calc|quote)(?:\s+?(?:([^=]+)(?:\s?(=)\s?(.+)?)?)?)?)', types=['PRIVMSG'])
def cmd_calc(self, match, message):
word, changeit, value = match.groups()

View File

@ -92,9 +92,6 @@ class PyIRCBot(object):
self.log.info("disconnect")
self.kill(message=message)
def break_connection(self):
"""Break the connection, e.g. in the case of an unresponsive server"""
def kill(self, message="Help! Another thread is killing me :(", forever=True):
"""Close the connection violently