summaryrefslogtreecommitdiff
path: root/run.py
diff options
context:
space:
mode:
authorKyomotoi <[email protected]>2020-04-28 00:30:40 +0800
committerKyomotoi <[email protected]>2020-04-28 00:30:40 +0800
commitb33aba098aae9feafd77b56746b4ff5946c843cf (patch)
tree3bab5ebd949c0fc201711de3528555fc54bb5a52 /run.py
downloadATRI-b33aba098aae9feafd77b56746b4ff5946c843cf.tar.gz
ATRI-b33aba098aae9feafd77b56746b4ff5946c843cf.tar.bz2
ATRI-b33aba098aae9feafd77b56746b4ff5946c843cf.zip
Initial commit
Diffstat (limited to 'run.py')
-rw-r--r--run.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/run.py b/run.py
new file mode 100644
index 0000000..1f85549
--- /dev/null
+++ b/run.py
@@ -0,0 +1,12 @@
+import nonebot
+import config
+from os import path
+
+
+if __name__ == '__main__':
+ nonebot.init(config)
+ nonebot.load_builtin_plugins()
+ nonebot.load_plugins(
+ path.join(path.dirname(__file__), 'AyaBot', 'plugins'),
+ 'AyaBot.plugins')
+ nonebot.run()