summaryrefslogtreecommitdiff
path: root/bot.py
diff options
context:
space:
mode:
authorKyomotoi <[email protected]>2020-10-18 16:40:41 +0800
committerGitHub <[email protected]>2020-10-18 16:40:41 +0800
commita3838cec8eba90936a864f01ee44d3f93410af6e (patch)
treec5cee330f0da74ede9aa9eb0e2207f42b3e30108 /bot.py
parentfd8240672020519ac39c2b42a70cf5017d9ef1d8 (diff)
downloadATRI-a3838cec8eba90936a864f01ee44d3f93410af6e.tar.gz
ATRI-a3838cec8eba90936a864f01ee44d3f93410af6e.tar.bz2
ATRI-a3838cec8eba90936a864f01ee44d3f93410af6e.zip
Rename BOT.py to bot.py
Diffstat (limited to 'bot.py')
-rw-r--r--bot.py32
1 files changed, 32 insertions, 0 deletions
diff --git a/bot.py b/bot.py
new file mode 100644
index 0000000..38b36d8
--- /dev/null
+++ b/bot.py
@@ -0,0 +1,32 @@
+#!/usr/bin/env python3
+# -*- encoding: utf-8 -*-
+'''
+@File : bot.py
+@Time : 2020/10/11 14:36:01
+@Author : Kyomotoi
+@Contact : [email protected]
+@Github : https://github.com/Kyomotoi
+@License : Copyright © 2018-2020 Kyomotoi, All Rights Reserved.
+'''
+__author__ = 'kyomotoi'
+
+import time
+COPYRIGHT = (
+ r"""====================[ATRI | アトリ]====================
+* Mirai + NoneBot2 + Python
+* Copyright © 2018-2020 Kyomotoi,All Rights Reserved
+* Project: https://github.com/Kyomotoi/ATRI
+* Blog: blog.lolihub.icu
+=======================================================""")
+print(COPYRIGHT)
+time.sleep(2)
+
+import nonebot
+
+nonebot.init()
+app = nonebot.get_asgi()
+
+nonebot.load_plugins("ATRI/plugins")
+
+if __name__ == "__main__":
+ nonebot.run(app="bot:app")