auto_help update

pull/18/head
bobloy 7 years ago
parent 55a2edb62b
commit 00c20f5453

@ -29,7 +29,7 @@ class CCRole:
Highly customizable custom commands with role management."""
if not ctx.invoked_subcommand:
await ctx.send_help()
pass
@ccrole.command(name="add")
@checks.mod_or_permissions(administrator=True)

@ -101,13 +101,13 @@ class Chatter:
return False
return True
@commands.group()
@commands.group(invoke_without_command=False)
async def chatter(self, ctx: commands.Context):
"""
Base command for this cog. Check help for the commands list.
"""
if ctx.invoked_subcommand is None:
await ctx.send_help()
pass
@chatter.command()
async def age(self, ctx: commands.Context, days: int):

@ -103,7 +103,7 @@ class Fight:
await ctx.send("Current tournament ID: " + await self._activefight(ctx))
if ctx.invoked_subcommand is None:
await ctx.send_help()
pass
# await ctx.send("I can do stuff!")
@fight.command(name="join")
@ -199,7 +199,7 @@ class Fight:
async def fadmin(self, ctx):
"""Admin command for managing the current tournament"""
if ctx.invoked_subcommand is None:
await ctx.send_help()
pass
@fadmin.command(name="score")
async def fadmin_score(self, ctx: commands.Context, mID, score1, score2):
@ -257,7 +257,7 @@ class Fight:
# self.save_data()
if ctx.invoked_subcommand is None:
await ctx.send_help()
pass
# await ctx.send("I can do stuff!")
@fightset.command(name="emoji")
@ -549,7 +549,7 @@ class Fight:
async def fightset_guild(self, ctx):
"""Adjust guild wide settings"""
if ctx.invoked_subcommand is None or isinstance(ctx.invoked_subcommand, commands.Group):
await ctx.send_help()
pass
@fightset_guild.command(name="selfreport")
async def fightset_guild_selfreport(self, ctx):

@ -42,7 +42,7 @@ class Flag:
Extra information goes here
"""
if ctx.invoked_subcommand is None:
await ctx.send_help()
pass
@flagset.command(name="expire")
async def flagset_expire(self, ctx: commands.Context, days: int):

@ -127,8 +127,8 @@ class Hangman:
@checks.mod_or_permissions(administrator=True)
async def hangset(self, ctx):
"""Adjust hangman settings"""
if not ctx.invoked_subcommand:
await ctx.send_help()
if ctx.invoked_subcommand is None:
pass
@hangset.command(pass_context=True)
async def face(self, ctx: commands.Context, theface):

@ -33,7 +33,7 @@ class Howdoi:
"""Adjust howdoi settings
Settings are reset on reload"""
if ctx.invoked_subcommand is None:
await ctx.send_help()
pass
@howdoiset.command(pass_context=True, name="answers")
async def howdoiset_answers(self, ctx, num_answers: int=1):

@ -23,7 +23,7 @@ class Leaver:
async def leaverset(self, ctx):
"""Adjust leaver settings"""
if ctx.invoked_subcommand is None:
await ctx.send_help()
pass
@leaverset.command()
async def channel(self, ctx: Context):

@ -41,7 +41,7 @@ class LastSeen:
async def lset(self, ctx: commands.Context):
"""Change settings for lseen"""
if ctx.invoked_subcommand is None:
await ctx.send_help()
pass
@lset.command(name="toggle")
async def lset_toggle(self, ctx: commands.Context):

@ -208,7 +208,7 @@ class ReactRestrict:
Base command for this cog. Check help for the commands list.
"""
if ctx.invoked_subcommand is None:
await ctx.send_help()
pass
@reactrestrict.command()
async def add(self, ctx: commands.Context, message_id: int, *, role: discord.Role):

@ -33,7 +33,7 @@ class Werewolf:
Base command for this cog. Check help for the commands list.
"""
if ctx.invoked_subcommand is None:
await ctx.send_help()
pass
@ww.command()
async def new(self, ctx, game_code):

@ -45,7 +45,7 @@ class StealEmoji:
Base command for this cog. Check help for the commands list.
"""
if ctx.invoked_subcommand is None:
await ctx.send_help()
pass
@stealemoji.command(name="collect")
async def se_collect(self, ctx):

@ -37,7 +37,7 @@ class Timerole:
async def timerole(self, ctx):
"""Adjust timerole settings"""
if ctx.invoked_subcommand is None:
await ctx.send_help()
pass
@timerole.command()
async def addrole(self, ctx: commands.Context, role: discord.Role, days: int, *requiredroles: discord.Role):

@ -53,7 +53,7 @@ class Werewolf:
Base command to adjust settings. Check help for command list.
"""
if ctx.invoked_subcommand is None:
await ctx.send_help()
pass
@commands.guild_only()
@wwset.command(name="list")
@ -136,7 +136,7 @@ class Werewolf:
Base command for this cog. Check help for the commands list.
"""
if ctx.invoked_subcommand is None:
await ctx.send_help()
pass
@commands.guild_only()
@ww.command(name="new")

Loading…
Cancel
Save