mirror of
https://github.com/brandons209/Red-bot-Cogs.git
synced 2024-05-03 20:13:51 +12:00
add typing when generating script
This commit is contained in:
parent
ce4a52bc19
commit
a5ad9c8734
|
@ -223,6 +223,7 @@ class ScriptGen(commands.Cog):
|
|||
)
|
||||
p.start()
|
||||
|
||||
async with ctx.typing():
|
||||
# in order to avoid the bot's main asyncio loop getting held up (which freezes the bot)
|
||||
# need to wait while the queue is empty. also cant just put pass, since this
|
||||
# will also hold up the bot's main loop
|
||||
|
|
Loading…
Reference in a new issue