Exemplo n.º 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 botutils.check_if_admin(ctx) or \
            botutils.check_if_lobby(ctx) or \
            botutils.check_if_spec(ctx)
Exemplo n.º 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)
Exemplo n.º 3
0
 def cog_check(self, ctx):
     return botutils.check_if_admin(ctx) and botc.check_if_not_player(ctx)
Exemplo n.º 4
0
 def cog_check(self, ctx):
     return botutils.check_if_admin(ctx)