From 3e4ddb24f075dd1b1aecbb036e97501eb5e56edd Mon Sep 17 00:00:00 2001 From: bobloy Date: Mon, 3 Aug 2020 13:11:35 -0400 Subject: [PATCH] Add calls to super().__init__ (#110) --- announcedaily/announcedaily.py | 1 + coglint/coglint.py | 1 + dad/dad.py | 1 + exclusiverole/exclusiverole.py | 1 + flag/flag.py | 1 + forcemention/forcemention.py | 1 + lseen/lseen.py | 1 + planttycoon/planttycoon.py | 1 + qrinvite/qrinvite.py | 1 + reactrestrict/reactrestrict.py | 1 + recyclingplant/recyclingplant.py | 1 + rpsls/rpsls.py | 1 + sayurl/sayurl.py | 1 + scp/scp.py | 1 + timerole/timerole.py | 1 + unicode/unicode.py | 1 + 16 files changed, 16 insertions(+) diff --git a/announcedaily/announcedaily.py b/announcedaily/announcedaily.py index 4b433ba..fb02756 100644 --- a/announcedaily/announcedaily.py +++ b/announcedaily/announcedaily.py @@ -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("\\", "/") diff --git a/coglint/coglint.py b/coglint/coglint.py index c0feb9b..b867ef8 100644 --- a/coglint/coglint.py +++ b/coglint/coglint.py @@ -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} diff --git a/dad/dad.py b/dad/dad.py index 890134c..3cc9a05 100644 --- a/dad/dad.py +++ b/dad/dad.py @@ -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) diff --git a/exclusiverole/exclusiverole.py b/exclusiverole/exclusiverole.py index 0a2a054..ded1677 100644 --- a/exclusiverole/exclusiverole.py +++ b/exclusiverole/exclusiverole.py @@ -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": []} diff --git a/flag/flag.py b/flag/flag.py index 47f7270..b6d2673 100644 --- a/flag/flag.py +++ b/flag/flag.py @@ -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 = {} diff --git a/forcemention/forcemention.py b/forcemention/forcemention.py index e9b5c5a..8fb1380 100644 --- a/forcemention/forcemention.py +++ b/forcemention/forcemention.py @@ -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 = {} diff --git a/lseen/lseen.py b/lseen/lseen.py index 95916d4..fe07c71 100644 --- a/lseen/lseen.py +++ b/lseen/lseen.py @@ -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 = {} diff --git a/planttycoon/planttycoon.py b/planttycoon/planttycoon.py index 4396bd2..a37a42f 100644 --- a/planttycoon/planttycoon.py +++ b/planttycoon/planttycoon.py @@ -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 = [] diff --git a/qrinvite/qrinvite.py b/qrinvite/qrinvite.py index ace9cd7..99563e8 100644 --- a/qrinvite/qrinvite.py +++ b/qrinvite/qrinvite.py @@ -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 = {} diff --git a/reactrestrict/reactrestrict.py b/reactrestrict/reactrestrict.py index a6f212e..d28be9e 100644 --- a/reactrestrict/reactrestrict.py +++ b/reactrestrict/reactrestrict.py @@ -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 diff --git a/recyclingplant/recyclingplant.py b/recyclingplant/recyclingplant.py index 3ed88a2..2460c4f 100644 --- a/recyclingplant/recyclingplant.py +++ b/recyclingplant/recyclingplant.py @@ -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 diff --git a/rpsls/rpsls.py b/rpsls/rpsls.py index b1386d1..ac80c8e 100644 --- a/rpsls/rpsls.py +++ b/rpsls/rpsls.py @@ -18,6 +18,7 @@ class RPSLS(Cog): } def __init__(self, bot): + super().__init__() self.bot = bot @commands.command() diff --git a/sayurl/sayurl.py b/sayurl/sayurl.py index 21c3076..ed6ca94 100644 --- a/sayurl/sayurl.py +++ b/sayurl/sayurl.py @@ -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 = {} diff --git a/scp/scp.py b/scp/scp.py index 4dd9b79..0df8c87 100644 --- a/scp/scp.py +++ b/scp/scp.py @@ -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() diff --git a/timerole/timerole.py b/timerole/timerole.py index ef05f18..273216d 100644 --- a/timerole/timerole.py +++ b/timerole/timerole.py @@ -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 = {} diff --git a/unicode/unicode.py b/unicode/unicode.py index c24c816..78eb4f0 100644 --- a/unicode/unicode.py +++ b/unicode/unicode.py @@ -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)