Discord.py 如何让机器人在没有arg的情况下说话

Discord.py 如何让机器人在没有arg的情况下说话,discord.py,Discord.py,所以我想要的是,即使没有arg,bot也会响应 到目前为止,我所拥有的: @bot.command() async def commands(ctx, command_number): if int(command_number) == 1: embed=discord.Embed(title="**__Commands 1:__**", description="Here the Moderation and Regular command

所以我想要的是,即使没有arg,bot也会响应

到目前为止,我所拥有的:

@bot.command()
async def commands(ctx, command_number):
    if int(command_number) == 1:
        embed=discord.Embed(title="**__Commands 1:__**", description="Here the Moderation and Regular commands of this bot, the requirements to use them and their nicknames.\n", color=discord.Color.red())

        embed.add_field(name="**Moderation Commands**", value="`+lock`: Prevents all non-admins from speaking in the channel.\n**Permissions Required**: Role With Manage Channel Permissions\n\n`+unlock`: Allows all non-admins to talk in the channel again.\n**Permissions Required**: Role With Manage Channel Permissions\n\n`+kick`: Kicks the person that you ping after the command `+kick`.\n**Permissions Required**: Role with kick members permissions required.\n\n`+ban`: Bans the person that you ping after the command `+kick`.\n**Permissions Required**: Role with ban members permissions required.\n\n`+blind`: Prevents all non-admins from seeing the channel.\n**Permissions Required**: Role With Manage Channel Permissions.\n\n`+unblind`: Allows all non-admins to talk in the channel again. \n**Permissions Required**: Role With Manage Channel Permissions.", inline=False)

        embed.add_field(name='**Regular Commands**', value='`+announcement`: Sends an announcement to the announcement channel.\n**Permissions Required**: Role With Kick Abilities\n**Nicknames**: `+ann`\n\n`+members`: Shows how many people and bots are on the server and their stats.\n**Nicknames**: `+m`\n\n**The permissions requirements assumes that your admins and moderators are trusted people.*', inline=False)
    
        await ctx.send(embed=embed)

    elif int(command_number) == 2:
        embed=discord.Embed(title="**__Commands 2:__**", description="Here the fun commands of this bot, the requirements to use them and their nicknames.\n", color=discord.Color.red())

        embed.add_field(name='**Fun Commands**', value='`+spam`: Sends a spam message.\n**Permissions Required**: Role With Kick Abilities\n\n`+say`: Makes the bot say the words you said after `+say`.\n**Nicknames**: `+s`\n\n`+bold`: Makes the bot say the words you said after `+bold` in bold.\n**Nicknames**: `+b`\n\n`+italic`: Makes the bot say the words you said after `+italic` in italics.\n**Nicknames**: `+i`\n\n`+strikethrough`: Makes the bot say the words you said after `+strikethrough` crossed out.\n**Nicknames**: `+st`\n\n`+underline`: Makes the bot say the words you said after `+underline` underlined.\n**Nicknames**: `+ul`\n\n`+boldunderline`: Makes the bot say the words you said after `boldunderline` bolded and underlined.\n**Nicknames**: `+bul`\n\n`+bully`: The bot bullies the person you __ping__ after the command `+bully`.\n\n**The permissions requirements assumes that your admins and moderators are trusted people.*', inline=False)

        await ctx.send(embed=embed)

    elif int(command_number) != 1 or 2:
        await ctx.send('That is not a valid page number.')
我尝试了
elif int(命令号)==None:wait ctx.send('请选择页码')

但它不起作用。请帮助。

“它不起作用”,因为您尚未指定默认值
None

@bot.command()
异步def命令(ctx,命令编号=无):
如果命令号为“无”:
return wait ctx.send('请选择页码')