End time as error msg
This commit is contained in:
parent
57e55363d9
commit
6e2834fc5f
1 changed files with 2 additions and 5 deletions
|
@ -264,11 +264,8 @@ async def append_to_queue(
|
|||
end_time = datetime.datetime.fromtimestamp(state.config.last_song)
|
||||
if report_to is not None:
|
||||
await sio.emit(
|
||||
"msg",
|
||||
{
|
||||
"msg": f"The song queue ends at {end_time.hour:02d}:"
|
||||
f"{end_time.minute:02d}."
|
||||
},
|
||||
"err",
|
||||
{"type": "QUEUE_FULL", "end_time": state.config.last_song},
|
||||
room=report_to,
|
||||
)
|
||||
return
|
||||
|
|
Loading…
Add table
Reference in a new issue