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