Shorten addcommand and removecommand to addcmd and removecmd
This commit is contained in:
parent
d158a1cf62
commit
70cbb85402
1 changed files with 2 additions and 2 deletions
4
bot.py
4
bot.py
|
@ -59,7 +59,7 @@ class Bot(commands.Bot):
|
||||||
await ctx.send(response.strip())
|
await ctx.send(response.strip())
|
||||||
|
|
||||||
@commands.command()
|
@commands.command()
|
||||||
async def addcommand(self, ctx: commands.Context):
|
async def addcmd(self, ctx: commands.Context):
|
||||||
# Lets moderators add custom text responses
|
# Lets moderators add custom text responses
|
||||||
if not ctx.author.is_mod:
|
if not ctx.author.is_mod:
|
||||||
await ctx.send("lmao nice try ur not a mod")
|
await ctx.send("lmao nice try ur not a mod")
|
||||||
|
@ -83,7 +83,7 @@ class Bot(commands.Bot):
|
||||||
await ctx.send(f"Adding command: \"{PREFIX}{command_name}\" -> \"{command_text}\"")
|
await ctx.send(f"Adding command: \"{PREFIX}{command_name}\" -> \"{command_text}\"")
|
||||||
|
|
||||||
@commands.command()
|
@commands.command()
|
||||||
async def removecommand(self, ctx: commands.Context):
|
async def removecmd(self, ctx: commands.Context):
|
||||||
if not ctx.author.is_mod:
|
if not ctx.author.is_mod:
|
||||||
await ctx.send("lmao nice try ur not a mod")
|
await ctx.send("lmao nice try ur not a mod")
|
||||||
return
|
return
|
||||||
|
|
Loading…
Add table
Reference in a new issue