T
T
tokyo_ghoul42021-08-12 06:43:41
Python
tokyo_ghoul4, 2021-08-12 06:43:41

How to change the output of discord.py?

When I display the received information, I get a report with the id of the message, chat, etc.

and I need to get the number that I entered (for example, 54)

Here is my code:

def check_two(m):
            m = m.content
            # return m.isdigit() and (1 <= int(m) <= 139)
            return (1 <= int(m) <= 139) 

        msg2 = await bot.wait_for('message', check=check_two)
        DataBook_Page = await channel.send('Страница'.format(msg2))
        print(DataBook_Page)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Kuznetsov, 2021-08-12
@dima9595

well, you print the whole answer, and you print only what you need!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question