Cleanup
This commit is contained in:
parent
b142c501e7
commit
4daf05858b
|
@ -79,7 +79,6 @@ class Calc(ModuleBase):
|
||||||
seconds = int(remaining - (minutes * 60))
|
seconds = int(remaining - (minutes * 60))
|
||||||
return "Please wait %s minute(s) and %s second(s)." % (minutes, seconds)
|
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'])
|
@regex(r'(?:^\.?(?:calc|quote)(?:\s+?(?:([^=]+)(?:\s?(=)\s?(.+)?)?)?)?)', types=['PRIVMSG'])
|
||||||
def cmd_calc(self, match, message):
|
def cmd_calc(self, match, message):
|
||||||
word, changeit, value = match.groups()
|
word, changeit, value = match.groups()
|
||||||
|
|
|
@ -92,9 +92,6 @@ class PyIRCBot(object):
|
||||||
self.log.info("disconnect")
|
self.log.info("disconnect")
|
||||||
self.kill(message=message)
|
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):
|
def kill(self, message="Help! Another thread is killing me :(", forever=True):
|
||||||
"""Close the connection violently
|
"""Close the connection violently
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue