transitous rewrite: add check_stations() function

This commit is contained in:
Kaaninchen
2026-08-16 23:15:38 +02:00
parent 8e9fa7c2f2
commit 36a1db0647
7 changed files with 796 additions and 13 deletions
+8
View File
@@ -1,14 +1,22 @@
import discord
import sys
from src.utils import logger
from src.config import config
from src.dc.handlers import rename_vc
from src.dc.helpers import validate_channel
from src.dc.commands import setup_commands
from src.api.transitous import check_stations
bot = discord.Bot(intents=discord.Intents.all())
setup_commands(bot=bot)
_bot_initialized = False
if len(sys.argv) > 1:
if sys.argv[1] == "stations":
check_stations()
sys.exit(0)
@bot.event
async def on_ready():
global _bot_initialized