Update the presence of the bot when the op25 config is set, or the bot is started
This commit is contained in:
@@ -100,6 +100,11 @@ class DRBCDBAPI(BaseAPI):
|
||||
print("Getting bot status")
|
||||
return await self._get("/bot/status")
|
||||
|
||||
async def update_bot_presence(self):
|
||||
"""Updates the bot's precense with the configured system."""
|
||||
print("Getting bot status")
|
||||
return await self._post("/op25/update-presence")
|
||||
|
||||
# Example Usage (assuming your FastAPI app is running on http://localhost:8000)
|
||||
async def example_usage():
|
||||
"""Demonstrates asynchronous API interaction using httpx."""
|
||||
|
||||
Reference in New Issue
Block a user