mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 18:16:34 +01:00
Add matthew command as text
This commit is contained in:
parent
364ffb98a8
commit
538896dae0
1 changed files with 7 additions and 3 deletions
|
@ -415,9 +415,13 @@ class OtherCog(commands.Cog):
|
||||||
blacklist.write(line)
|
blacklist.write(line)
|
||||||
await ctx.respond("Removed domain from blacklist.")
|
await ctx.respond("Removed domain from blacklist.")
|
||||||
|
|
||||||
domains_matthew = discord.SlashCommandGroup("matthew", "Commands for managing Matthew")
|
@commands.group(name="domains", invoke_without_command=True)
|
||||||
|
@commands.is_owner()
|
||||||
|
async def domains_group(self, ctx: commands.Context):
|
||||||
|
"""Commands for managing domains"""
|
||||||
|
await ctx.send_help(ctx.command)
|
||||||
|
|
||||||
@domains_matthew.command(name="enable")
|
@domains_group.command(name="enable")
|
||||||
async def enable_matthew(self, ctx: discord.ApplicationContext):
|
async def enable_matthew(self, ctx: discord.ApplicationContext):
|
||||||
"""Enables Matthew"""
|
"""Enables Matthew"""
|
||||||
await ctx.defer()
|
await ctx.defer()
|
||||||
|
@ -426,7 +430,7 @@ class OtherCog(commands.Cog):
|
||||||
self.bot.ALLOW_MATTHEW = True
|
self.bot.ALLOW_MATTHEW = True
|
||||||
await ctx.respond("Matthew enabled.")
|
await ctx.respond("Matthew enabled.")
|
||||||
|
|
||||||
@domains_matthew.command(name="disable")
|
@domains_group.command(name="disable")
|
||||||
async def disable_matthew(self, ctx: discord.ApplicationContext):
|
async def disable_matthew(self, ctx: discord.ApplicationContext):
|
||||||
"""Disables Matthew"""
|
"""Disables Matthew"""
|
||||||
await ctx.defer()
|
await ctx.defer()
|
||||||
|
|
Loading…
Reference in a new issue