from pybot import PythonBot
from decouple import config

TOKEN_LENGTH = 46


def main() -> int:
    bot_token = config("TOKEN", default="")

    if len(bot_token) != TOKEN_LENGTH:
        print("Bot token is incorrect or missing")
        return 1

    bot = PythonBot(bot_token)
    bot.run()
    return 0


if __name__ == "__main__":
    import sys
    sys.exit(main())
