Smart hit assignation and chain monitoring
This commit is contained in:
8
main.py
8
main.py
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user