remove need for quotes in notification commands
This commit is contained in:
parent
83fd598f9d
commit
8f7899f031
1 changed files with 5 additions and 5 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue