import nonebot
from nonebot.adapters.cqhttp import Bot as CQHTTPBot


def main():
    nonebot.init(_env_file=".env")

    driver = nonebot.get_driver()
    driver.register_adapter("cqhttp", CQHTTPBot)

    nonebot.load_builtin_plugins()
    nonebot.load_plugin("nonebot_plugin_apscheduler")
    nonebot.load_plugin("nonebot_plugin_bam")

    nonebot.run()


if __name__ == "__main__":
    main()
