Add calls to super().__init__ (#110)
This commit is contained in:
parent
71791a2f5a
commit
3e4ddb24f0
@ -21,6 +21,7 @@ class AnnounceDaily(Cog):
|
||||
"""
|
||||
|
||||
def __init__(self, bot: Red):
|
||||
super().__init__()
|
||||
self.bot = bot
|
||||
self.path = str(cog_data_path(self)).replace("\\", "/")
|
||||
|
||||
|
@ -12,6 +12,7 @@ class CogLint(Cog):
|
||||
"""
|
||||
|
||||
def __init__(self, bot: Red):
|
||||
super().__init__()
|
||||
self.bot = bot
|
||||
self.config = Config.get_conf(self, identifier=9811198108111121, force_registration=True)
|
||||
default_global = {"lint": True}
|
||||
|
@ -22,6 +22,7 @@ class Dad(Cog):
|
||||
"""
|
||||
|
||||
def __init__(self, bot: Red):
|
||||
super().__init__()
|
||||
self.bot = bot
|
||||
self.config = Config.get_conf(self, identifier=6897100, force_registration=True)
|
||||
|
||||
|
@ -11,6 +11,7 @@ class ExclusiveRole(Cog):
|
||||
"""
|
||||
|
||||
def __init__(self, bot):
|
||||
super().__init__()
|
||||
self.bot = bot
|
||||
self.config = Config.get_conf(self, identifier=9999114111108101)
|
||||
default_guild = {"role_list": []}
|
||||
|
@ -13,6 +13,7 @@ class Flag(Cog):
|
||||
"""
|
||||
|
||||
def __init__(self, bot: Red):
|
||||
super().__init__()
|
||||
self.bot = bot
|
||||
self.config = Config.get_conf(self, identifier=9811198108111121, force_registration=True)
|
||||
default_global = {}
|
||||
|
@ -12,6 +12,7 @@ class ForceMention(Cog):
|
||||
"""
|
||||
|
||||
def __init__(self, bot: Red):
|
||||
super().__init__()
|
||||
self.bot = bot
|
||||
self.config = Config.get_conf(self, identifier=9811198108111121, force_registration=True)
|
||||
default_global = {}
|
||||
|
@ -17,6 +17,7 @@ class LastSeen(Cog):
|
||||
offline_status = discord.Status.offline
|
||||
|
||||
def __init__(self, bot: Red):
|
||||
super().__init__()
|
||||
self.bot = bot
|
||||
self.config = Config.get_conf(self, identifier=9811198108111121, force_registration=True)
|
||||
default_global = {}
|
||||
|
@ -16,6 +16,7 @@ class Gardener(commands.Cog):
|
||||
"""Gardener class"""
|
||||
|
||||
def __init__(self, user: discord.User, config: Config):
|
||||
super().__init__()
|
||||
self.user = user
|
||||
self.config = config
|
||||
self.badges = []
|
||||
|
@ -16,6 +16,7 @@ class QRInvite(Cog):
|
||||
"""
|
||||
|
||||
def __init__(self, bot: Red):
|
||||
super().__init__()
|
||||
self.bot = bot
|
||||
self.config = Config.get_conf(self, identifier=9811198108111121, force_registration=True)
|
||||
default_global = {}
|
||||
|
@ -28,6 +28,7 @@ class ReactRestrict(Cog):
|
||||
"""
|
||||
|
||||
def __init__(self, red: Red):
|
||||
super().__init__()
|
||||
self.bot = red
|
||||
self.config = Config.get_conf(
|
||||
self, 8210197991168210111511611410599116, force_registration=True
|
||||
|
@ -11,6 +11,7 @@ class RecyclingPlant(Cog):
|
||||
"""Apply for a job at the recycling plant!"""
|
||||
|
||||
def __init__(self, bot):
|
||||
super().__init__()
|
||||
self.bot = bot
|
||||
self.junk = None
|
||||
|
||||
|
@ -18,6 +18,7 @@ class RPSLS(Cog):
|
||||
}
|
||||
|
||||
def __init__(self, bot):
|
||||
super().__init__()
|
||||
self.bot = bot
|
||||
|
||||
@commands.command()
|
||||
|
@ -18,6 +18,7 @@ class SayUrl(Cog):
|
||||
"""
|
||||
|
||||
def __init__(self, bot: Red):
|
||||
super().__init__()
|
||||
self.bot = bot
|
||||
self.config = Config.get_conf(self, identifier=9811198108111121, force_registration=True)
|
||||
default_global = {}
|
||||
|
@ -8,6 +8,7 @@ class SCP(Cog):
|
||||
"""Look up SCP articles. Warning: Some of them may be too creepy or gruesome."""
|
||||
|
||||
def __init__(self, bot):
|
||||
super().__init__()
|
||||
self.bot = bot
|
||||
|
||||
@commands.command()
|
||||
|
@ -12,6 +12,7 @@ class Timerole(Cog):
|
||||
"""Add roles to users based on time on server"""
|
||||
|
||||
def __init__(self, bot: Red):
|
||||
super().__init__()
|
||||
self.bot = bot
|
||||
self.config = Config.get_conf(self, identifier=9811198108111121, force_registration=True)
|
||||
default_global = {}
|
||||
|
@ -9,6 +9,7 @@ class Unicode(Cog):
|
||||
"""Encode/Decode Unicode characters!"""
|
||||
|
||||
def __init__(self, bot):
|
||||
super().__init__()
|
||||
self.bot = bot
|
||||
|
||||
@commands.group(name="unicode", pass_context=True)
|
||||
|
Loading…
x
Reference in New Issue
Block a user