GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 14-15 lines in 10 locations

axiol/plugins/giveaway.py 1 location

@@ 18-32 (lines=15) @@
15
        self.bot = bot
16
        self.check_gw.start()
17
18
    async def cog_check(self, ctx):
19
        """Simple check to see if this cog (plugin) is enabled."""
20
        guild_doc = await db.PLUGINS.find_one({"_id": ctx.guild.id})
21
22
        if guild_doc.get("Giveaway"):
23
            return True
24
25
        else:
26
            await ctx.send(
27
                embed=discord.Embed(
28
                    description=(
29
                        f"{var.E_DISABLE} The Giveaway plugin "
30
                        f"is disabled in this server"
31
                    ),
32
                    color=var.C_ORANGE
33
                )
34
            )
35

axiol/plugins/moderation.py 1 location

@@ 15-29 (lines=15) @@
12
    def __init__(self, bot):
13
        self.bot = bot
14
15
    async def cog_check(self, ctx):
16
        """Simple check to see if this cog (plugin) is enabled."""
17
        guild_doc = await db.PLUGINS.find_one({"_id": ctx.guild.id})
18
19
        if guild_doc.get("Moderation"):
20
            return True
21
22
        else:
23
            await ctx.send(
24
                embed=discord.Embed(
25
                    description=(
26
                        f"{var.E_DISABLE} The Moderation plugin "
27
                        "is disabled in this server"
28
                    ),
29
                    color=var.C_ORANGE
30
                )
31
            )
32

axiol/plugins/chatbot.py 1 location

@@ 15-29 (lines=15) @@
12
        self.bot = bot
13
14
15
    async def cog_check(self, ctx):
16
        """Simple check to see if this cog (plugin) is enabled"""
17
        guild_doc = await db.PLUGINS.find_one({"_id": ctx.guild.id})
18
19
        if guild_doc.get("Chatbot"):
20
            return True
21
22
        else:
23
            await ctx.send(
24
                embed=discord.Embed(
25
                    description=(
26
                        f"{var.E_DISABLE} The Chatbot plugin is"
27
                        " disabled in this server"
28
                    ),
29
                    color=var.C_ORANGE
30
                )
31
            )
32

axiol/plugins/verification.py 1 location

@@ 15-29 (lines=15) @@
12
    def __init__(self, bot):
13
        self.bot = bot
14
15
    async def cog_check(self, ctx):
16
        """Simple check to see if this cog (plugin) is enabled."""
17
        guild_doc = await db.PLUGINS.find_one({"_id": ctx.guild.id})
18
19
        if guild_doc.get("Verification"):
20
            return True
21
22
        else:
23
            await ctx.send(
24
                embed=discord.Embed(
25
                    description=(
26
                        f"{var.E_DISABLE} The Verification plugin"
27
                        " is disabled in this server"
28
                    ),
29
                    color=var.C_ORANGE
30
                )
31
            )
32

axiol/plugins/leveling.py 1 location

@@ 14-28 (lines=15) @@
11
    def __init__(self, bot):
12
        self.bot = bot
13
14
    async def cog_check(self, ctx):
15
        """Simple check to see if this cog (plugin) is enabled."""
16
        guild_doc = await db.PLUGINS.find_one({"_id": ctx.guild.id})
17
18
        if guild_doc.get("Leveling"):
19
            return True
20
21
        else:
22
            await ctx.send(
23
                embed=discord.Embed(
24
                    description=(
25
                        f"{var.E_DISABLE} The Leveling plugin "
26
                        f"is disabled in this server"
27
                    ),
28
                    color=var.C_ORANGE
29
                )
30
            )
31

axiol/plugins/karma.py 1 location

@@ 19-32 (lines=14) @@
16
    def __init__(self, bot):
17
        self.bot = bot
18
19
    async def cog_check(self, ctx):
20
        """Simple check to see if this cog (plugin) is enabled."""
21
        guild_doc = await db.PLUGINS.find_one({"_id": ctx.guild.id})
22
23
        if guild_doc.get("Karma"):
24
            return True
25
        else:
26
            await ctx.send(
27
                embed=discord.Embed(
28
                    description=(
29
                        f"{var.E_DISABLE} The Karma plugin is"
30
                        " disabled in this server"
31
                    ),
32
                    color=var.C_ORANGE
33
                )
34
            )
35

axiol/plugins/welcome.py 1 location

@@ 15-28 (lines=14) @@
12
    def __init__(self, bot):
13
        self.bot = bot
14
15
    async def cog_check(self, ctx):
16
        """Simple check to see if this cog (plugin) is enabled"""
17
        guild_doc = await db.PLUGINS.find_one({"_id": ctx.guild.id})
18
        if guild_doc.get("Welcome"):
19
            return True
20
21
        else:
22
            await ctx.send(
23
                embed=discord.Embed(
24
                    description=(
25
                        f"{var.E_DISABLE} The Welcome plugin is "
26
                        f"disabled in this server"
27
                    ),
28
                    color=var.C_ORANGE
29
                )
30
            )
31

axiol/plugins/automod.py 1 location

@@ 14-27 (lines=14) @@
11
    def __init__(self, bot):
12
        self.bot = bot
13
    
14
    async def cog_check(self, ctx):
15
        """Simple check to see if this cog (plugin) is enabled."""
16
        guild_doc = await db.PLUGINS.find_one({"_id": ctx.guild.id})
17
        if guild_doc.get("AutoMod"):
18
            return True
19
20
        else:
21
            await ctx.send(
22
                embed=discord.Embed(
23
                    description=(
24
                        f"{var.E_DISABLE} The Auto-Moderation plugin"
25
                        " is disabled in this server"
26
                    ),
27
                    color=var.C_ORANGE
28
                )
29
            )
30

axiol/plugins/reactionroles.py 1 location

@@ 14-27 (lines=14) @@
11
    def __init__(self, bot):
12
        self.bot = bot
13
14
    async def cog_check(self, ctx):
15
        """Simple check to see if this cog (plugin) is enabled."""
16
        guild_doc = await db.PLUGINS.find_one({"_id": ctx.guild.id})
17
        if guild_doc.get("ReactionRoles"):
18
            return True
19
20
        else:
21
            await ctx.send(
22
                embed=discord.Embed(
23
                    description=(
24
                        f"{var.E_DISABLE} The Reaction Roles plugin"
25
                        " is disabled in this server"
26
                    ),
27
                    color=var.C_ORANGE
28
                )
29
            )
30

axiol/plugins/fun.py 1 location

@@ 208-222 (lines=15) @@
205
        self.bot = bot
206
        self.matches: typing.List[TypeRacer] = []
207
208
    async def cog_check(self, ctx):
209
        """Simple check to see if this cog (plugin) is enabled."""
210
        guild_doc = await db.PLUGINS.find_one({"_id": ctx.guild.id})
211
212
        if guild_doc.get("Fun"):
213
            return True
214
215
        else:
216
            await ctx.send(
217
                embed=discord.Embed(
218
                    description=(
219
                        f"{var.E_DISABLE} "
220
                        "The Fun plugin is disabled in this server"
221
                    ),
222
                    color=var.C_ORANGE
223
                )
224
            )
225