core: add control option to check the message queue length
This commit is contained in:
parent
3e38c113d9
commit
79a307a7b5
5
main.py
5
main.py
|
@ -271,6 +271,11 @@ def queue_processor():
|
|||
print(f"[INFO]: DELAY_AFTER_IDLE = {DELAY_AFTER_IDLE}")
|
||||
updater.bot.send_message(msg.chat.id, f"[INFO]: DELAY_AFTER_IDLE = {DELAY_AFTER_IDLE}")
|
||||
|
||||
elif len(command) == 2 and command[0] == "queue":
|
||||
if command[1] == "size":
|
||||
print(f"[INFO]: Queue length is {len(message_queue)}")
|
||||
updater.bot.send_message(msg.chat.id, f"[INFO]: Queue length is {len(message_queue)}")
|
||||
|
||||
continue
|
||||
|
||||
# modules are used in here
|
||||
|
|
Loading…
Reference in New Issue