From 8f7899f031a41c1bb36a82439ab0e9800dc4fb5f Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Wed, 1 Jan 2025 01:42:16 -0500 Subject: [PATCH] remove need for quotes in notification commands --- nomen/notifications.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/nomen/notifications.py b/nomen/notifications.py index 252cc30..d54b43a 100644 --- a/nomen/notifications.py +++ b/nomen/notifications.py @@ -222,11 +222,11 @@ class Notifications(Cog): @keyword.command() @guild_only() - async def add(self, ctx, keyword): + async def add(self, ctx, *, keyword): """ Adds a notification keyword - Use quotes for a keyword with spaces! + Quotes aren't necessary, spaces are included automatically! """ try: @@ -238,11 +238,11 @@ class Notifications(Cog): @keyword.command() @guild_only() - async def regex(self, ctx, keyword): + async def regex(self, ctx, *, keyword): """ 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 @@ -255,7 +255,7 @@ class Notifications(Cog): @keyword.command(aliases=["delete", "del"]) @guild_only() - async def remove(self, ctx, keyword): + async def remove(self, ctx, *, keyword): """ Removes a keyword or regex