nonebot2/tests/bot.py

19 lines
303 B
Python
Raw Normal View History

2020-06-30 02:13:58 +00:00
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import sys
2020-07-04 14:51:10 +00:00
sys.path.insert(0, os.path.abspath(".."))
2020-06-30 02:13:58 +00:00
import nonebot
from nonebot.matcher import matchers
2020-07-04 14:51:10 +00:00
nonebot.init()
app = nonebot.get_asgi()
nonebot.load_plugins("test_plugins")
2020-06-30 02:13:58 +00:00
if __name__ == "__main__":
2020-07-04 14:51:10 +00:00
nonebot.run(app="bot:app")