nonebot2/tests/bot.py
2020-07-04 22:51:10 +08:00

21 lines
355 B
Python

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import sys
sys.path.insert(0, os.path.abspath(".."))
import nonebot
from nonebot.matcher import matchers
nonebot.init()
app = nonebot.get_asgi()
nonebot.load_plugins("test_plugins")
print(nonebot.get_loaded_plugins())
print(matchers)
if __name__ == "__main__":
nonebot.run(app="bot:app")