tuxbot-bot/tuxbot/cogs/Mod/__init__.py

20 lines
495 B
Python
Raw Normal View History

2021-05-13 16:45:49 +02:00
from collections import namedtuple
from tuxbot.core.bot import Tux
from .mod import Mod
from .config import ModConfig, HAS_MODELS
VersionInfo = namedtuple("VersionInfo", "major minor micro release_level")
version_info = VersionInfo(major=1, minor=0, micro=0, release_level="alpha")
__version__ = "v{}.{}.{}-{}".format(
version_info.major,
version_info.minor,
version_info.micro,
version_info.release_level,
).replace("\n", "")
def setup(bot: Tux):
bot.add_cog(Mod(bot))