コード例 #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)
コード例 #2
0
ファイル: time.py プロジェクト: Picowchew/BOTC-Bot
 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)
コード例 #3
0
ファイル: revealrole.py プロジェクト: Picowchew/BOTC-Bot
 def cog_check(self, ctx):
     return botutils.check_if_admin(ctx) and botc.check_if_not_player(ctx)
コード例 #4
0
 def cog_check(self, ctx):
     return botutils.check_if_admin(ctx)