mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Removed unnecessary __init__ and die methods
This commit is contained in:
parent
fac4c5624c
commit
b4d327cc61
@ -83,9 +83,6 @@ conf.registerGlobalValue(conf.supybot.plugins.Amazon, 'licenseKey',
|
||||
class Amazon(callbacks.Privmsg):
|
||||
threaded = True
|
||||
|
||||
def __init__(self):
|
||||
callbacks.Privmsg.__init__(self)
|
||||
|
||||
def _genResults(self, reply, attribs, items, url, bold, bold_item):
|
||||
results = {}
|
||||
res = []
|
||||
|
@ -70,12 +70,6 @@ conf.registerGlobalValue(conf.supybot.plugins.Dict, 'server',
|
||||
|
||||
class Dict(callbacks.Privmsg):
|
||||
threaded = True
|
||||
def __init__(self):
|
||||
callbacks.Privmsg.__init__(self)
|
||||
|
||||
def die(self):
|
||||
callbacks.Privmsg.die(self)
|
||||
|
||||
def dictionaries(self, irc, msg, args):
|
||||
"""takes no arguments.
|
||||
|
||||
|
@ -81,11 +81,6 @@ class Ebay(callbacks.PrivmsgCommandAndRegexp):
|
||||
"""
|
||||
threaded = True
|
||||
regexps = ['ebaySnarfer']
|
||||
def __init__(self):
|
||||
callbacks.PrivmsgCommandAndRegexp.__init__(self)
|
||||
|
||||
def die(self):
|
||||
callbacks.PrivmsgCommandAndRegexp.die(self)
|
||||
|
||||
_reopts = re.I | re.S
|
||||
_invalid = re.compile(r'(is invalid, still pending, or no longer in our '
|
||||
|
@ -89,12 +89,7 @@ class Gameknot(callbacks.PrivmsgCommandAndRegexp):
|
||||
r'"#FFFF00">(\d+)')
|
||||
_gkteam = re.compile(r'Team:(<.*?>)+(?P<name>.*?)</span>')
|
||||
_gkseen = re.compile(r'(seen on GK:\s+([^[]+ago)|.*?is hiding.*?)')
|
||||
def __init__(self):
|
||||
callbacks.PrivmsgCommandAndRegexp.__init__(self)
|
||||
|
||||
def die(self):
|
||||
callbacks.PrivmsgCommandAndRegexp.die(self)
|
||||
|
||||
def getStats(self, name):
|
||||
gkprofile = 'http://www.gameknot.com/stats.pl?%s' % name
|
||||
try:
|
||||
|
@ -172,9 +172,6 @@ class Google(callbacks.PrivmsgCommandAndRegexp):
|
||||
self.totalTime = 0
|
||||
self.last24hours = structures.queue()
|
||||
|
||||
def die(self):
|
||||
callbacks.PrivmsgCommandAndRegexp.die(self)
|
||||
|
||||
def formatData(self, data, bold=True, max=0):
|
||||
if isinstance(data, basestring):
|
||||
return data
|
||||
|
@ -127,11 +127,6 @@ class Sourceforge(callbacks.PrivmsgCommandAndRegexp):
|
||||
_statusOpt = {'any':100, 'open':1, 'closed':2, 'deleted':3, 'pending':4}
|
||||
|
||||
_projectURL = 'http://sourceforge.net/projects/'
|
||||
def __init__(self):
|
||||
callbacks.PrivmsgCommandAndRegexp.__init__(self)
|
||||
|
||||
def die(self):
|
||||
callbacks.PrivmsgCommandAndRegexp.die(self)
|
||||
|
||||
def _formatResp(self, text, num=''):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user