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)
|
end_time = datetime.datetime.fromtimestamp(state.config.last_song)
|
||||||
if report_to is not None:
|
if report_to is not None:
|
||||||
await sio.emit(
|
await sio.emit(
|
||||||
"msg",
|
"err",
|
||||||
{
|
{"type": "QUEUE_FULL", "end_time": state.config.last_song},
|
||||||
"msg": f"The song queue ends at {end_time.hour:02d}:"
|
|
||||||
f"{end_time.minute:02d}."
|
|
||||||
},
|
|
||||||
room=report_to,
|
room=report_to,
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Add table
Reference in a new issue