コード例 #1
0
ファイル: command.py プロジェクト: murilo-toddy/discordbot
async def credits(ctx):
    log_function("credits", ctx)
    await cmd.credits.credits(ctx)
コード例 #2
0
ファイル: command.py プロジェクト: murilo-toddy/discordbot
async def help(ctx, *args):
    log_function("help", ctx)
    await cmd.help.help(client, ctx, *args)
コード例 #3
0
ファイル: command.py プロジェクト: murilo-toddy/discordbot
async def function_check(ctx, function: str, check=True):
    log_function(function, ctx)
    if not await verify_channel(ctx, check): return None
    return bot.server[str(ctx.guild.id)]
コード例 #4
0
ファイル: command.py プロジェクト: murilo-toddy/discordbot
async def function_check_play(ctx, function: str):
    log_function(function, ctx)
    if not await verify_channel_play(ctx): return None
    return bot.server[str(ctx.guild.id)]
コード例 #5
0
async def _help(ctx: SlashContext, command="help"):
    log_function("help", ctx)
    await ctx.send(embeds=[cmd.help.get_embed(client, command)])