remove need for quotes in notification commands

This commit is contained in:
Infinidoge 2025-01-01 01:42:16 -05:00
parent 83fd598f9d
commit 8f7899f031
Signed by: Infinidoge
SSH key fingerprint: SHA256:GT2StvPQMMfFHyiiFJymQxfTG/z6EWLJ6NWItf5K5sA

View file

@ -222,11 +222,11 @@ class Notifications(Cog):
@keyword.command() @keyword.command()
@guild_only() @guild_only()
async def add(self, ctx, keyword): async def add(self, ctx, *, keyword):
""" """
Adds a notification keyword Adds a notification keyword
Use quotes for a keyword with spaces! Quotes aren't necessary, spaces are included automatically!
""" """
try: try:
@ -238,11 +238,11 @@ class Notifications(Cog):
@keyword.command() @keyword.command()
@guild_only() @guild_only()
async def regex(self, ctx, keyword): async def regex(self, ctx, *, keyword):
""" """
Adds a notification regex Adds a notification regex
Use quotes for a regex with spaces! Quotes aren't necessary, spaces are included automatically!
""" """
# TODO: Add regex names to make notifications cleaner # TODO: Add regex names to make notifications cleaner
@ -255,7 +255,7 @@ class Notifications(Cog):
@keyword.command(aliases=["delete", "del"]) @keyword.command(aliases=["delete", "del"])
@guild_only() @guild_only()
async def remove(self, ctx, keyword): async def remove(self, ctx, *, keyword):
""" """
Removes a keyword or regex Removes a keyword or regex