summaryrefslogtreecommitdiff
path: root/ATRI/plugins/console/driver
diff options
context:
space:
mode:
authorKyomotoi <[email protected]>2022-06-09 22:32:12 +0800
committerKyomotoi <[email protected]>2022-06-09 22:32:12 +0800
commit88a4105e7cbfbcd7952b3d47be3279f021f7ad6f (patch)
tree4ea6c61f0c058ae6eef57678ed3717d7d4ffe6bf /ATRI/plugins/console/driver
parenta8163fc8b97612793d3b55ebd4e90c61cd4ba77a (diff)
downloadATRI-88a4105e7cbfbcd7952b3d47be3279f021f7ad6f.tar.gz
ATRI-88a4105e7cbfbcd7952b3d47be3279f021f7ad6f.tar.bz2
ATRI-88a4105e7cbfbcd7952b3d47be3279f021f7ad6f.zip
💩 优化代码
Diffstat (limited to 'ATRI/plugins/console/driver')
-rw-r--r--ATRI/plugins/console/driver/__init__.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/ATRI/plugins/console/driver/__init__.py b/ATRI/plugins/console/driver/__init__.py
index fe4398a..c438214 100644
--- a/ATRI/plugins/console/driver/__init__.py
+++ b/ATRI/plugins/console/driver/__init__.py
@@ -1,8 +1,8 @@
-from nonebot import get_driver
from nonebot.drivers.fastapi import Driver
from fastapi.middleware.cors import CORSMiddleware
+from ATRI import driver
from .view import (
handle_auther,
handle_base_uri,
@@ -52,5 +52,4 @@ def register_routes(driver: Driver):
def init():
- driver = get_driver()
register_routes(driver) # type: ignore