feat: implement dynamic bot list with runtime add/remove support

Adds a new BotManager class that maintains a mutable list of active bots, allowing bots to be added or removed at runtime without restarting the application. Includes thread-safe operations for concurrent access and a new API endpoint to query the current bot roster.
This commit is contained in:
2024-12-19 12:02:24 +00:00
parent 83c33208ac
commit e62701c28c
8 changed files with 12 additions and 26 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
ENV=./.venv/bin/activate
PYTHON=./.venv/bin/python
BIN=./.venv/bin
all: ensure_env format build install test
format:
@@ -17,7 +18,7 @@ install:
$(PYTHON) -m pip install -e .
run:
$(PYTHON) -m ragnar.run
$(BIN)/ragnar.run
test:
$(PYTHON) -m unittest ragnar.tests