2020-06-06 18:51:47 +02:00
|
|
|
from collections import namedtuple
|
|
|
|
|
2020-06-05 00:29:14 +02:00
|
|
|
from .warnings import Warnings
|
|
|
|
from ...core.bot import Tux
|
|
|
|
|
2020-06-06 18:51:47 +02:00
|
|
|
VersionInfo = namedtuple("VersionInfo", "major minor micro releaselevel")
|
|
|
|
version_info = VersionInfo(major=1, minor=0, micro=0, releaselevel="alpha")
|
|
|
|
|
|
|
|
__version__ = "v{}.{}.{}-{}".format(
|
|
|
|
version_info.major,
|
|
|
|
version_info.minor,
|
|
|
|
version_info.micro,
|
|
|
|
version_info.releaselevel
|
|
|
|
).replace("\n", "")
|
|
|
|
|
2020-06-05 00:29:14 +02:00
|
|
|
|
|
|
|
def setup(bot: Tux):
|
|
|
|
bot.add_cog(Warnings(bot))
|