feat: bot Discord presence + system name on voice join
- RadioBot.join() accepts system_name parameter - Sets bot activity to ActivityType.listening → system name on connect - Clears presence (activity=None) on leave - main.py passes system_name from MQTT payload to radio_bot.join()
This commit is contained in:
@@ -66,6 +66,7 @@ async def on_command(payload: dict):
|
||||
channel_id=int(payload["channel_id"]),
|
||||
token=token,
|
||||
call_active=metadata_watcher.is_active,
|
||||
system_name=payload.get("system_name"),
|
||||
)
|
||||
elif action == "discord_leave":
|
||||
await radio_bot.leave()
|
||||
|
||||
Reference in New Issue
Block a user