Add calls to super().__init__ (#110)

pull/111/head
bobloy 5 years ago committed by GitHub
parent 71791a2f5a
commit 3e4ddb24f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -21,6 +21,7 @@ class AnnounceDaily(Cog):
""" """
def __init__(self, bot: Red): def __init__(self, bot: Red):
super().__init__()
self.bot = bot self.bot = bot
self.path = str(cog_data_path(self)).replace("\\", "/") self.path = str(cog_data_path(self)).replace("\\", "/")

@ -12,6 +12,7 @@ class CogLint(Cog):
""" """
def __init__(self, bot: Red): def __init__(self, bot: Red):
super().__init__()
self.bot = bot self.bot = bot
self.config = Config.get_conf(self, identifier=9811198108111121, force_registration=True) self.config = Config.get_conf(self, identifier=9811198108111121, force_registration=True)
default_global = {"lint": True} default_global = {"lint": True}

@ -22,6 +22,7 @@ class Dad(Cog):
""" """
def __init__(self, bot: Red): def __init__(self, bot: Red):
super().__init__()
self.bot = bot self.bot = bot
self.config = Config.get_conf(self, identifier=6897100, force_registration=True) self.config = Config.get_conf(self, identifier=6897100, force_registration=True)

@ -11,6 +11,7 @@ class ExclusiveRole(Cog):
""" """
def __init__(self, bot): def __init__(self, bot):
super().__init__()
self.bot = bot self.bot = bot
self.config = Config.get_conf(self, identifier=9999114111108101) self.config = Config.get_conf(self, identifier=9999114111108101)
default_guild = {"role_list": []} default_guild = {"role_list": []}

@ -13,6 +13,7 @@ class Flag(Cog):
""" """
def __init__(self, bot: Red): def __init__(self, bot: Red):
super().__init__()
self.bot = bot self.bot = bot
self.config = Config.get_conf(self, identifier=9811198108111121, force_registration=True) self.config = Config.get_conf(self, identifier=9811198108111121, force_registration=True)
default_global = {} default_global = {}

@ -12,6 +12,7 @@ class ForceMention(Cog):
""" """
def __init__(self, bot: Red): def __init__(self, bot: Red):
super().__init__()
self.bot = bot self.bot = bot
self.config = Config.get_conf(self, identifier=9811198108111121, force_registration=True) self.config = Config.get_conf(self, identifier=9811198108111121, force_registration=True)
default_global = {} default_global = {}

@ -17,6 +17,7 @@ class LastSeen(Cog):
offline_status = discord.Status.offline offline_status = discord.Status.offline
def __init__(self, bot: Red): def __init__(self, bot: Red):
super().__init__()
self.bot = bot self.bot = bot
self.config = Config.get_conf(self, identifier=9811198108111121, force_registration=True) self.config = Config.get_conf(self, identifier=9811198108111121, force_registration=True)
default_global = {} default_global = {}

@ -16,6 +16,7 @@ class Gardener(commands.Cog):
"""Gardener class""" """Gardener class"""
def __init__(self, user: discord.User, config: Config): def __init__(self, user: discord.User, config: Config):
super().__init__()
self.user = user self.user = user
self.config = config self.config = config
self.badges = [] self.badges = []

@ -16,6 +16,7 @@ class QRInvite(Cog):
""" """
def __init__(self, bot: Red): def __init__(self, bot: Red):
super().__init__()
self.bot = bot self.bot = bot
self.config = Config.get_conf(self, identifier=9811198108111121, force_registration=True) self.config = Config.get_conf(self, identifier=9811198108111121, force_registration=True)
default_global = {} default_global = {}

@ -28,6 +28,7 @@ class ReactRestrict(Cog):
""" """
def __init__(self, red: Red): def __init__(self, red: Red):
super().__init__()
self.bot = red self.bot = red
self.config = Config.get_conf( self.config = Config.get_conf(
self, 8210197991168210111511611410599116, force_registration=True self, 8210197991168210111511611410599116, force_registration=True

@ -11,6 +11,7 @@ class RecyclingPlant(Cog):
"""Apply for a job at the recycling plant!""" """Apply for a job at the recycling plant!"""
def __init__(self, bot): def __init__(self, bot):
super().__init__()
self.bot = bot self.bot = bot
self.junk = None self.junk = None

@ -18,6 +18,7 @@ class RPSLS(Cog):
} }
def __init__(self, bot): def __init__(self, bot):
super().__init__()
self.bot = bot self.bot = bot
@commands.command() @commands.command()

@ -18,6 +18,7 @@ class SayUrl(Cog):
""" """
def __init__(self, bot: Red): def __init__(self, bot: Red):
super().__init__()
self.bot = bot self.bot = bot
self.config = Config.get_conf(self, identifier=9811198108111121, force_registration=True) self.config = Config.get_conf(self, identifier=9811198108111121, force_registration=True)
default_global = {} default_global = {}

@ -8,6 +8,7 @@ class SCP(Cog):
"""Look up SCP articles. Warning: Some of them may be too creepy or gruesome.""" """Look up SCP articles. Warning: Some of them may be too creepy or gruesome."""
def __init__(self, bot): def __init__(self, bot):
super().__init__()
self.bot = bot self.bot = bot
@commands.command() @commands.command()

@ -12,6 +12,7 @@ class Timerole(Cog):
"""Add roles to users based on time on server""" """Add roles to users based on time on server"""
def __init__(self, bot: Red): def __init__(self, bot: Red):
super().__init__()
self.bot = bot self.bot = bot
self.config = Config.get_conf(self, identifier=9811198108111121, force_registration=True) self.config = Config.get_conf(self, identifier=9811198108111121, force_registration=True)
default_global = {} default_global = {}

@ -9,6 +9,7 @@ class Unicode(Cog):
"""Encode/Decode Unicode characters!""" """Encode/Decode Unicode characters!"""
def __init__(self, bot): def __init__(self, bot):
super().__init__()
self.bot = bot self.bot = bot
@commands.group(name="unicode", pass_context=True) @commands.group(name="unicode", pass_context=True)

Loading…
Cancel
Save