auto_help update
This commit is contained in:
parent
55a2edb62b
commit
00c20f5453
@ -29,7 +29,7 @@ class CCRole:
|
|||||||
|
|
||||||
Highly customizable custom commands with role management."""
|
Highly customizable custom commands with role management."""
|
||||||
if not ctx.invoked_subcommand:
|
if not ctx.invoked_subcommand:
|
||||||
await ctx.send_help()
|
pass
|
||||||
|
|
||||||
@ccrole.command(name="add")
|
@ccrole.command(name="add")
|
||||||
@checks.mod_or_permissions(administrator=True)
|
@checks.mod_or_permissions(administrator=True)
|
||||||
|
@ -101,13 +101,13 @@ class Chatter:
|
|||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
@commands.group()
|
@commands.group(invoke_without_command=False)
|
||||||
async def chatter(self, ctx: commands.Context):
|
async def chatter(self, ctx: commands.Context):
|
||||||
"""
|
"""
|
||||||
Base command for this cog. Check help for the commands list.
|
Base command for this cog. Check help for the commands list.
|
||||||
"""
|
"""
|
||||||
if ctx.invoked_subcommand is None:
|
if ctx.invoked_subcommand is None:
|
||||||
await ctx.send_help()
|
pass
|
||||||
|
|
||||||
@chatter.command()
|
@chatter.command()
|
||||||
async def age(self, ctx: commands.Context, days: int):
|
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))
|
await ctx.send("Current tournament ID: " + await self._activefight(ctx))
|
||||||
|
|
||||||
if ctx.invoked_subcommand is None:
|
if ctx.invoked_subcommand is None:
|
||||||
await ctx.send_help()
|
pass
|
||||||
# await ctx.send("I can do stuff!")
|
# await ctx.send("I can do stuff!")
|
||||||
|
|
||||||
@fight.command(name="join")
|
@fight.command(name="join")
|
||||||
@ -199,7 +199,7 @@ class Fight:
|
|||||||
async def fadmin(self, ctx):
|
async def fadmin(self, ctx):
|
||||||
"""Admin command for managing the current tournament"""
|
"""Admin command for managing the current tournament"""
|
||||||
if ctx.invoked_subcommand is None:
|
if ctx.invoked_subcommand is None:
|
||||||
await ctx.send_help()
|
pass
|
||||||
|
|
||||||
@fadmin.command(name="score")
|
@fadmin.command(name="score")
|
||||||
async def fadmin_score(self, ctx: commands.Context, mID, score1, score2):
|
async def fadmin_score(self, ctx: commands.Context, mID, score1, score2):
|
||||||
@ -257,7 +257,7 @@ class Fight:
|
|||||||
# self.save_data()
|
# self.save_data()
|
||||||
|
|
||||||
if ctx.invoked_subcommand is None:
|
if ctx.invoked_subcommand is None:
|
||||||
await ctx.send_help()
|
pass
|
||||||
# await ctx.send("I can do stuff!")
|
# await ctx.send("I can do stuff!")
|
||||||
|
|
||||||
@fightset.command(name="emoji")
|
@fightset.command(name="emoji")
|
||||||
@ -549,7 +549,7 @@ class Fight:
|
|||||||
async def fightset_guild(self, ctx):
|
async def fightset_guild(self, ctx):
|
||||||
"""Adjust guild wide settings"""
|
"""Adjust guild wide settings"""
|
||||||
if ctx.invoked_subcommand is None or isinstance(ctx.invoked_subcommand, commands.Group):
|
if ctx.invoked_subcommand is None or isinstance(ctx.invoked_subcommand, commands.Group):
|
||||||
await ctx.send_help()
|
pass
|
||||||
|
|
||||||
@fightset_guild.command(name="selfreport")
|
@fightset_guild.command(name="selfreport")
|
||||||
async def fightset_guild_selfreport(self, ctx):
|
async def fightset_guild_selfreport(self, ctx):
|
||||||
|
@ -42,7 +42,7 @@ class Flag:
|
|||||||
Extra information goes here
|
Extra information goes here
|
||||||
"""
|
"""
|
||||||
if ctx.invoked_subcommand is None:
|
if ctx.invoked_subcommand is None:
|
||||||
await ctx.send_help()
|
pass
|
||||||
|
|
||||||
@flagset.command(name="expire")
|
@flagset.command(name="expire")
|
||||||
async def flagset_expire(self, ctx: commands.Context, days: int):
|
async def flagset_expire(self, ctx: commands.Context, days: int):
|
||||||
|
@ -127,8 +127,8 @@ class Hangman:
|
|||||||
@checks.mod_or_permissions(administrator=True)
|
@checks.mod_or_permissions(administrator=True)
|
||||||
async def hangset(self, ctx):
|
async def hangset(self, ctx):
|
||||||
"""Adjust hangman settings"""
|
"""Adjust hangman settings"""
|
||||||
if not ctx.invoked_subcommand:
|
if ctx.invoked_subcommand is None:
|
||||||
await ctx.send_help()
|
pass
|
||||||
|
|
||||||
@hangset.command(pass_context=True)
|
@hangset.command(pass_context=True)
|
||||||
async def face(self, ctx: commands.Context, theface):
|
async def face(self, ctx: commands.Context, theface):
|
||||||
|
@ -33,7 +33,7 @@ class Howdoi:
|
|||||||
"""Adjust howdoi settings
|
"""Adjust howdoi settings
|
||||||
Settings are reset on reload"""
|
Settings are reset on reload"""
|
||||||
if ctx.invoked_subcommand is None:
|
if ctx.invoked_subcommand is None:
|
||||||
await ctx.send_help()
|
pass
|
||||||
|
|
||||||
@howdoiset.command(pass_context=True, name="answers")
|
@howdoiset.command(pass_context=True, name="answers")
|
||||||
async def howdoiset_answers(self, ctx, num_answers: int=1):
|
async def howdoiset_answers(self, ctx, num_answers: int=1):
|
||||||
|
@ -23,7 +23,7 @@ class Leaver:
|
|||||||
async def leaverset(self, ctx):
|
async def leaverset(self, ctx):
|
||||||
"""Adjust leaver settings"""
|
"""Adjust leaver settings"""
|
||||||
if ctx.invoked_subcommand is None:
|
if ctx.invoked_subcommand is None:
|
||||||
await ctx.send_help()
|
pass
|
||||||
|
|
||||||
@leaverset.command()
|
@leaverset.command()
|
||||||
async def channel(self, ctx: Context):
|
async def channel(self, ctx: Context):
|
||||||
|
@ -41,7 +41,7 @@ class LastSeen:
|
|||||||
async def lset(self, ctx: commands.Context):
|
async def lset(self, ctx: commands.Context):
|
||||||
"""Change settings for lseen"""
|
"""Change settings for lseen"""
|
||||||
if ctx.invoked_subcommand is None:
|
if ctx.invoked_subcommand is None:
|
||||||
await ctx.send_help()
|
pass
|
||||||
|
|
||||||
@lset.command(name="toggle")
|
@lset.command(name="toggle")
|
||||||
async def lset_toggle(self, ctx: commands.Context):
|
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.
|
Base command for this cog. Check help for the commands list.
|
||||||
"""
|
"""
|
||||||
if ctx.invoked_subcommand is None:
|
if ctx.invoked_subcommand is None:
|
||||||
await ctx.send_help()
|
pass
|
||||||
|
|
||||||
@reactrestrict.command()
|
@reactrestrict.command()
|
||||||
async def add(self, ctx: commands.Context, message_id: int, *, role: discord.Role):
|
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.
|
Base command for this cog. Check help for the commands list.
|
||||||
"""
|
"""
|
||||||
if ctx.invoked_subcommand is None:
|
if ctx.invoked_subcommand is None:
|
||||||
await ctx.send_help()
|
pass
|
||||||
|
|
||||||
@ww.command()
|
@ww.command()
|
||||||
async def new(self, ctx, game_code):
|
async def new(self, ctx, game_code):
|
||||||
|
@ -45,7 +45,7 @@ class StealEmoji:
|
|||||||
Base command for this cog. Check help for the commands list.
|
Base command for this cog. Check help for the commands list.
|
||||||
"""
|
"""
|
||||||
if ctx.invoked_subcommand is None:
|
if ctx.invoked_subcommand is None:
|
||||||
await ctx.send_help()
|
pass
|
||||||
|
|
||||||
@stealemoji.command(name="collect")
|
@stealemoji.command(name="collect")
|
||||||
async def se_collect(self, ctx):
|
async def se_collect(self, ctx):
|
||||||
|
@ -37,7 +37,7 @@ class Timerole:
|
|||||||
async def timerole(self, ctx):
|
async def timerole(self, ctx):
|
||||||
"""Adjust timerole settings"""
|
"""Adjust timerole settings"""
|
||||||
if ctx.invoked_subcommand is None:
|
if ctx.invoked_subcommand is None:
|
||||||
await ctx.send_help()
|
pass
|
||||||
|
|
||||||
@timerole.command()
|
@timerole.command()
|
||||||
async def addrole(self, ctx: commands.Context, role: discord.Role, days: int, *requiredroles: discord.Role):
|
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.
|
Base command to adjust settings. Check help for command list.
|
||||||
"""
|
"""
|
||||||
if ctx.invoked_subcommand is None:
|
if ctx.invoked_subcommand is None:
|
||||||
await ctx.send_help()
|
pass
|
||||||
|
|
||||||
@commands.guild_only()
|
@commands.guild_only()
|
||||||
@wwset.command(name="list")
|
@wwset.command(name="list")
|
||||||
@ -136,7 +136,7 @@ class Werewolf:
|
|||||||
Base command for this cog. Check help for the commands list.
|
Base command for this cog. Check help for the commands list.
|
||||||
"""
|
"""
|
||||||
if ctx.invoked_subcommand is None:
|
if ctx.invoked_subcommand is None:
|
||||||
await ctx.send_help()
|
pass
|
||||||
|
|
||||||
@commands.guild_only()
|
@commands.guild_only()
|
||||||
@ww.command(name="new")
|
@ww.command(name="new")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user