2020-11-12 00:03:01 +01:00
|
|
|
from collections import namedtuple
|
|
|
|
|
2021-01-20 15:08:16 +01:00
|
|
|
from tuxbot.core.bot import Tux
|
2020-11-12 00:03:01 +01:00
|
|
|
from .polls import Polls
|
|
|
|
from .config import PollsConfig, HAS_MODELS
|
|
|
|
|
|
|
|
VersionInfo = namedtuple("VersionInfo", "major minor micro release_level")
|
|
|
|
version_info = VersionInfo(major=2, 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(Polls(bot))
|