aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar onerandomusername <[email protected]>2021-12-03 17:19:57 -0500
committerGravatar onerandomusername <[email protected]>2021-12-03 17:28:47 -0500
commit2d0760821b629bcb3269534ed46c0a9af4026264 (patch)
tree756635794c48837c13f34f505da827dd3e6dbbcb
parentyank lovefest role management commands (diff)
chore: remove subcommands entirely
-rw-r--r--bot/exts/holidays/valentines/be_my_valentine.py14
1 files changed, 1 insertions, 13 deletions
diff --git a/bot/exts/holidays/valentines/be_my_valentine.py b/bot/exts/holidays/valentines/be_my_valentine.py
index a9a4731f..1e13e424 100644
--- a/bot/exts/holidays/valentines/be_my_valentine.py
+++ b/bot/exts/holidays/valentines/be_my_valentine.py
@@ -10,7 +10,6 @@ from bot.bot import Bot
from bot.constants import Channels, Colours, Lovefest, Month, PYTHON_PREFIX
from bot.utils.decorators import in_month
from bot.utils.exceptions import MovedCommandError
-from bot.utils.extensions import invoke_help_command
log = logging.getLogger(__name__)
@@ -33,7 +32,7 @@ class BeMyValentine(commands.Cog):
return loads(p.read_text("utf8"))
@in_month(Month.FEBRUARY)
- @commands.group(name="lovefest", help=f"This command has been moved to {MOVED_COMMAND}")
+ @commands.command(name="lovefest", help=f"NOTE: This command has been moved to {MOVED_COMMAND}")
async def lovefest_role(self, ctx: commands.Context) -> None:
"""
Subscribe or unsubscribe from the lovefest role.
@@ -43,17 +42,6 @@ class BeMyValentine(commands.Cog):
1) use the command \".lovefest sub\" to get the lovefest role.
2) use the command \".lovefest unsub\" to get rid of the lovefest role.
"""
- if not ctx.invoked_subcommand:
- await invoke_help_command(ctx)
-
- @lovefest_role.command(name="sub", help=f"This command has been moved to {MOVED_COMMAND}")
- async def add_role(self, ctx: commands.Context) -> None:
- """NOTE: This command has been moved to bot."""
- raise MovedCommandError(MOVED_COMMAND)
-
- @lovefest_role.command(name="unsub", help=f"This command has been moved to {MOVED_COMMAND}")
- async def remove_role(self, ctx: commands.Context) -> None:
- """NOTE: This command has been moved to bot."""
raise MovedCommandError(MOVED_COMMAND)
@commands.cooldown(1, 1800, commands.BucketType.user)