Fix a deprecation warning printed every time RTVIProcessor.set_bot_ready() is called

This commit is contained in:
Paul Kompfner
2025-11-07 11:27:58 -05:00
parent 6feecf05f7
commit 10f1c314b6

View File

@@ -1314,7 +1314,11 @@ class RTVIProcessor(FrameProcessor):
async def set_bot_ready(self):
"""Mark the bot as ready and send the bot-ready message."""
self._bot_ready = True
await self._update_config(self._config, False)
# Only call the (deprecated) _update_config method if the we're using a
# config (which is deprecated). Otherwise we'd always print an
# unnecessary deprecation warning.
if self._config.config:
await self._update_config(self._config, False)
await self._send_bot_ready()
async def interrupt_bot(self):