2020-06-11 01:06:30 +02:00
|
|
|
from collections import namedtuple
|
|
|
|
|
2020-11-09 01:18:55 +01:00
|
|
|
from .utils import Utils
|
|
|
|
from .config import UtilsConfig, HAS_MODELS
|
2020-06-11 01:06:30 +02:00
|
|
|
from ...core.bot import Tux
|
|
|
|
|
2020-08-28 01:06:57 +02:00
|
|
|
VersionInfo = namedtuple("VersionInfo", "major minor micro release_level")
|
|
|
|
version_info = VersionInfo(major=2, minor=0, micro=0, release_level="alpha")
|
2020-06-11 01:06:30 +02:00
|
|
|
|
|
|
|
__version__ = "v{}.{}.{}-{}".format(
|
|
|
|
version_info.major,
|
|
|
|
version_info.minor,
|
|
|
|
version_info.micro,
|
2020-08-28 01:06:57 +02:00
|
|
|
version_info.release_level,
|
2020-06-11 01:06:30 +02:00
|
|
|
).replace("\n", "")
|
|
|
|
|
|
|
|
|
|
|
|
def setup(bot: Tux):
|
2020-11-09 01:18:55 +01:00
|
|
|
bot.add_cog(Utils(bot))
|