@Supchik09
Python ,Js ,Discord .py.

Как сделать команду с страницами?

Я нашел на документации discord.py
код который : Выполняет действие при помощи нажатие реакции .
и я хочу сделать команду ХЕЛП и чтобы там было не сколько страниц но у меня получается
только при нажатии первой а потом второй и выбрать нельзя вот мой код:
@bot.event
async def on_message(message):
    if message.content.startswith('(help'):
        channel = message.channel
        check = await channel.send('HELP\nSearch reaction\n `Sundry` = \n`Fun` = ☺')
        await check.add_reaction('')
        await check.add_reaction('☺')


        def check(reaction, user):
            return user == message.author and str(reaction.emoji) == ''

        try:
            reaction, user = await bot.wait_for('reaction_add', timeout=60.0, check=check)
        except asyncio.TimeoutError:
            await channel.send('_____')
        else:
            embed = discord.Embed(title="sundry", description="`(help` - help\n `(clearchat clsc` - Clear chat\n `(tree` - tree \n `(grassblock` - grassblock" , color=0xcce734)
            embed.set_author(name="HELP!")
            embed.add_field(name="by Supchik ", value="=)", inline=False)
            embed.set_footer(text="_All rights reserved_")
            await channel.send(message.channel, embed=embed)


        def gg(reaction, user):
            return user == message.author and str(reaction.emoji) == '☺'

        try:
            reaction, user = await bot.wait_for('reaction_add', timeout=60.0, check=gg)
        except asyncio.TimeoutError:
            print('=(')
        else:
            embed = discord.Embed(title="Fun",
                                  description="meme - meme",
                                  color=0xcce734)
            embed.set_author(name="HELP!")
            embed.add_field(name="by Supchik ", value="=)", inline=False)
            embed.set_footer(text="_All rights reserved_")
            await channel.send(message.channel, embed=embed)
  • Вопрос задан
  • 267 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы