#!/usr/bin/env python3
"""Entry point for SREBOT Discord Bot."""
import sys
from pathlib import Path

# Ensure project root is in path
sys.path.insert(0, str(Path(__file__).parent))

from BOT.botscript import bot, TOKEN

if __name__ == "__main__":
    if TOKEN:
        bot.run(TOKEN)
    else:
        print("ERROR: DISCORD_KEY not set in environment")
        sys.exit(1)
