From 00c20f545323c688db03ff2830eec73fd9ba1bef Mon Sep 17 00:00:00 2001 From: bobloy Date: Tue, 28 Aug 2018 10:28:05 -0400 Subject: [PATCH] auto_help update --- ccrole/ccrole.py | 2 +- chatter/chat.py | 4 ++-- fight/fight.py | 8 ++++---- flag/flag.py | 2 +- hangman/hangman.py | 4 ++-- howdoi/howdoi.py | 2 +- leaver/leaver.py | 2 +- lseen/lseen.py | 2 +- reactrestrict/reactrestrict.py | 2 +- secrethitler/secrethitler.py | 2 +- stealemoji/stealemoji.py | 2 +- timerole/timerole.py | 2 +- werewolf/werewolf.py | 4 ++-- 13 files changed, 19 insertions(+), 19 deletions(-) diff --git a/ccrole/ccrole.py b/ccrole/ccrole.py index a858992..a92ef2d 100644 --- a/ccrole/ccrole.py +++ b/ccrole/ccrole.py @@ -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) diff --git a/chatter/chat.py b/chatter/chat.py index 5129f30..57dadf7 100644 --- a/chatter/chat.py +++ b/chatter/chat.py @@ -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): diff --git a/fight/fight.py b/fight/fight.py index 11b81ed..efba2ed 100644 --- a/fight/fight.py +++ b/fight/fight.py @@ -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): diff --git a/flag/flag.py b/flag/flag.py index 7fe1b30..1ececf4 100644 --- a/flag/flag.py +++ b/flag/flag.py @@ -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): diff --git a/hangman/hangman.py b/hangman/hangman.py index 2a95f54..042b5dc 100644 --- a/hangman/hangman.py +++ b/hangman/hangman.py @@ -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): diff --git a/howdoi/howdoi.py b/howdoi/howdoi.py index 019c014..17fc623 100644 --- a/howdoi/howdoi.py +++ b/howdoi/howdoi.py @@ -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): diff --git a/leaver/leaver.py b/leaver/leaver.py index 9fa5542..a9b4a6e 100644 --- a/leaver/leaver.py +++ b/leaver/leaver.py @@ -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): diff --git a/lseen/lseen.py b/lseen/lseen.py index baf4133..7693385 100644 --- a/lseen/lseen.py +++ b/lseen/lseen.py @@ -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): diff --git a/reactrestrict/reactrestrict.py b/reactrestrict/reactrestrict.py index 50aa61e..f1bb2c3 100644 --- a/reactrestrict/reactrestrict.py +++ b/reactrestrict/reactrestrict.py @@ -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): diff --git a/secrethitler/secrethitler.py b/secrethitler/secrethitler.py index c3682cc..2f9360b 100644 --- a/secrethitler/secrethitler.py +++ b/secrethitler/secrethitler.py @@ -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): diff --git a/stealemoji/stealemoji.py b/stealemoji/stealemoji.py index 143c38a..05dd961 100644 --- a/stealemoji/stealemoji.py +++ b/stealemoji/stealemoji.py @@ -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): diff --git a/timerole/timerole.py b/timerole/timerole.py index fb2fff2..25a7c1b 100644 --- a/timerole/timerole.py +++ b/timerole/timerole.py @@ -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): diff --git a/werewolf/werewolf.py b/werewolf/werewolf.py index e312312..59c18c6 100644 --- a/werewolf/werewolf.py +++ b/werewolf/werewolf.py @@ -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")