Discord.py: Is there a way to use input() without the bot pausing

Created on 5 Aug 2017  路  4Comments  路  Source: Rapptz/discord.py

i have tried many things to try and use input() in my code, but unfortunately i cant get it to work, there is nothing about this in the documentation to my knowledge, please help

question

Most helpful comment

Because this issue has nothing to do with the library.

This is reserved for library questions not general python questions about how to use input with asyncio.

Go ask Google.

All 4 comments

Your issue is you're trying to use a blocking function within an asynchronous system.
There are ways to achieve keyboard polling within an asynchronous library but I would suggest you read up on asynchronous and blocking vs non-blocking functions, here are a few resources:
AsyncIO docsl (Python AsyncIO Documentation)
Blocking vs Non-Blocking (This is written for node but the underlying theory is the same)
AsyncIO tutorial (I find this as a decent intro to AsyncIO in python)

This is also not an Issue with the library itself and would better be served as a question within our discord (This will join #General, then move to #python_discord-py for library related help)

Rapptz, why you always closing issues without solving, please don't set this to contributors only like you did with issue #125

Because this issue has nothing to do with the library.

This is reserved for library questions not general python questions about how to use input with asyncio.

Go ask Google.

@ThePiGuy24 this isnt an issue with the library, I also responded to you two days ago including where to seek help from, resulting in no response from you until just now. If there a problem with the library that we can help you with you are free you are free to open another issue, if you want more help in using Input within your bot please refer to my previous post and join our discord channel.

-Matt

Was this page helpful?
0 / 5 - 0 ratings

Related issues

0x78f1935 picture 0x78f1935  路  20Comments

Yuvira picture Yuvira  路  18Comments

Chicchi73930 picture Chicchi73930  路  17Comments

johndoe434 picture johndoe434  路  21Comments

Shea4 picture Shea4  路  21Comments