from types import SimpleNamespace from typing import Any, cast from discord import AutoShardedBot from discord.ext import commands, tasks from Christmas.config import ChristmasConfig class Christmas(AutoShardedBot): def __init__(self, *args: Any, **kwargs: Any): super().__init__(*args, **kwargs) self.config = ChristmasConfig() def run(self, *args: Any, **kwargs: Any) -> None: kwargs.update({"token": self.ctx.config.TOKEN}) super().run(*args, **kwargs)