Exemple #1
0
 def cog_check(self, ctx):
     """Check the channel of the context, return True if it is sent in either
     lobby, or in spec chat.
     Admins can bypass.
     """
     return check_if_is_player(
         ctx)  # Registered non-quit player -> NotAPlayer
Exemple #2
0
 def cog_check(self, ctx):
     """Check the channel of the context, return True if it is sent in
     lobby or in spectators chat
     Admins can bypass.
     """
     return  botutils.check_if_admin(ctx) or \
             botutils.check_if_spec(ctx) or \
             check_if_is_player(ctx)
 def cog_check(self, ctx):
     """Check performed on all commands of this cog.
     Must be a non-fleaved player to use these commands.
     """
     return check_if_is_player(
         ctx)  # Registered non-quit player -> NotAPlayer