Smart hit assignation and chain monitoring

This commit is contained in:
2026-01-27 08:26:48 -05:00
parent 5ef8707122
commit 99ffe7f9e9
13 changed files with 188 additions and 42 deletions

View File

@@ -17,9 +17,8 @@ from services.bot_assignment import BotAssignmentManager
from routers import pages, factions, assignments, discord_mappings, config
from routers import bot as bot_router
# ============================================================
# FastAPI Setup
# ============================================================
app = FastAPI()
app.mount("/static", StaticFiles(directory="static"), name="static")
@@ -32,9 +31,8 @@ app.include_router(bot_router.router)
app.include_router(discord_mappings.router)
app.include_router(config.router)
# ============================================================
# Discord Bot Setup
# ============================================================
intents = discord.Intents.default()
intents.message_content = True
@@ -96,9 +94,7 @@ async def start_bot():
except Exception as e:
print(f"ERROR starting Discord bot: {e}")
# ============================================================
# Main Entry Point
# ============================================================
async def main():
# Start Discord bot in background
bot_task = asyncio.create_task(start_bot())