mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-07 03:38:53 -05:00
can add customcoms with (), ""
fixed by Will/tekulvw
This commit is contained in:
parent
0b0931ba87
commit
4a9b3fcebb
@ -14,7 +14,7 @@ class CustomCommands:
|
|||||||
|
|
||||||
@commands.command(pass_context=True, no_pm=True)
|
@commands.command(pass_context=True, no_pm=True)
|
||||||
@checks.mod_or_permissions(manage_server=True)
|
@checks.mod_or_permissions(manage_server=True)
|
||||||
async def addcom(self, ctx, command : str, *text):
|
async def addcom(self, ctx, command : str, *, text):
|
||||||
"""Adds a custom command
|
"""Adds a custom command
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
@ -41,7 +41,7 @@ class CustomCommands:
|
|||||||
|
|
||||||
@commands.command(pass_context=True, no_pm=True)
|
@commands.command(pass_context=True, no_pm=True)
|
||||||
@checks.mod_or_permissions(manage_server=True)
|
@checks.mod_or_permissions(manage_server=True)
|
||||||
async def editcom(self, ctx, command : str, *text):
|
async def editcom(self, ctx, command : str, *, text):
|
||||||
"""Edits a custom command
|
"""Edits a custom command
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
@ -153,4 +153,4 @@ def setup(bot):
|
|||||||
check_files()
|
check_files()
|
||||||
n = CustomCommands(bot)
|
n = CustomCommands(bot)
|
||||||
bot.add_listener(n.checkCC, "on_message")
|
bot.add_listener(n.checkCC, "on_message")
|
||||||
bot.add_cog(n)
|
bot.add_cog(n)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user