parent
0b71797e1a
commit
5b7fe608ba
@ -0,0 +1,11 @@
|
|||||||
|
import nonebot
|
||||||
|
from nonebot.adapters.cqhttp import Bot as CQHTTPBot
|
||||||
|
|
||||||
|
nonebot.init(_env_file="electron/config.py")
|
||||||
|
driver = nonebot.get_driver()
|
||||||
|
driver.register_adapter("cqhttp", CQHTTPBot)
|
||||||
|
nonebot.load_builtin_plugins()
|
||||||
|
nonebot.load_plugins("electron/modules")
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
nonebot.run()
|
Loading…
Reference in new issue