mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-26 21:14:19 +00:00
🐛 Fix conversation.run behaviour
This commit is contained in:
parent
0644919a96
commit
d47a167346
1 changed files with 5 additions and 6 deletions
|
@ -96,13 +96,12 @@ class Command:
|
||||||
"""
|
"""
|
||||||
A conversation which runs the command.
|
A conversation which runs the command.
|
||||||
"""
|
"""
|
||||||
log.debug(f"Getting a message from the queue...")
|
log.debug(f"Getting a bullet from the queue...")
|
||||||
try:
|
b: bullet.Bullet = await _sentry
|
||||||
msg: bullet.Message = (_sentry | wrench.Type(bullet.Message)).get_nowait()
|
if not isinstance(b, bullet.Message):
|
||||||
except asyncio.QueueEmpty:
|
log.debug(f"Bullet is not a message, returning...")
|
||||||
log.debug(f"No message found in the queue, returning...")
|
|
||||||
return
|
|
||||||
|
|
||||||
|
msg: bullet.Message = b
|
||||||
log.debug(f"Getting text of {msg}...")
|
log.debug(f"Getting text of {msg}...")
|
||||||
text = await msg.text()
|
text = await msg.text()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue