summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyomotoi <[email protected]>2020-09-06 16:28:22 +0800
committerKyomotoi <[email protected]>2020-09-06 16:28:22 +0800
commit8313cd3aeab741e8b5c052cf35812308915f4d12 (patch)
treec74dc1d827b5a4f80ac5e75cde243680aaa4ab56
parentb5eaf0283065673389ecf997541d217cf7fc7541 (diff)
downloadATRI-8313cd3aeab741e8b5c052cf35812308915f4d12.tar.gz
ATRI-8313cd3aeab741e8b5c052cf35812308915f4d12.tar.bz2
ATRI-8313cd3aeab741e8b5c052cf35812308915f4d12.zip
[Update]
-rw-r--r--BOT.py9
-rw-r--r--config.py36
2 files changed, 34 insertions, 11 deletions
diff --git a/BOT.py b/BOT.py
index 0e632ff..e006c51 100644
--- a/BOT.py
+++ b/BOT.py
@@ -1,19 +1,18 @@
-# -*- coding:utf-8 -*-
import time
COPYRIGHT = (
- r"""====================ATRI | アトリ====================
+ r"""====================[ATRI | アトリ]====================
* Mirai + NoneBot + Python
* Copyright © 2018-2020 Kyomotoi,All Rights Reserved
* Project: https://github.com/Kyomotoi/ATRI
* Blog: blog.lolihub.icu
-====================================================="""
+======================================================="""
)
print(COPYRIGHT)
time.sleep(2)
-import config # type: ignore
-time.sleep(2)
+import config
print("ATRI正在苏醒...")
+time.sleep(2)
from os import path
diff --git a/config.py b/config.py
index 647abec..1afde53 100644
--- a/config.py
+++ b/config.py
@@ -2,14 +2,24 @@ import os
import time
from nonebot.default_config import *
-#配置监听的 IP 和 端口
+# 配置监听的 IP 和 端口
HOST = '127.0.0.1'
PORT = 8080
+# 机器人在繁忙之时的回复
+SESSION_RUNNING_EXPRESSION = '欸欸欸...能否等一下呢...ATRI处理不过来啦!'
+
+# 机器人在用户取消操作时的回复
+SESSION_CANCEL_EXPRESSION = (
+ '好吧...',
+ 'ATRI会随时待命的!毕竟我可是高性能的!',
+ '下次如有需要请尽管依赖ATRI吧!'
+ )
+
# 机器人的主人(QQ号)即 超级用户
SUPERUSERS = [123456789]
def MASTER():
- return 123456789
+ return SUPERUSERS
# 机器人名称,替代 @ 和 命令开头
NICKNAME = {'ATRI', '亚托莉', 'アトリ'}
@@ -23,17 +33,17 @@ def LOLICONAPI():
return a
# API url:https://www.faceplusplus.com.cn/
-b = ""
+b = "" # key
def FACE_KEY():
return b
-c = ""
+c = "" # secret
def FACE_SECRET():
return c
# API url:https://cloud.baidu.com/
def BAIDU_APP_ID():
- return 123 # id
+ return 123456 # id
d = "" # key
def BAIDU_API_KEY():
@@ -59,6 +69,8 @@ def SAUCENAO_KEY():
+
+
#以下请勿删除
print("正在导入记忆模块ing...")
@@ -170,6 +182,18 @@ else:
else:
os._exit(0)
+if BAIDU_SECRET():
+ print("用于图片识别的SECRET已到手!")
+else:
+ print("貌似没拿到图片识别的SECRET呢...如需帮助,请查看安装手册")
+ print("...跳过!")
+ time.sleep(1)
+ wait = input("是否继续: Y/N\n")
+ if wait == "Y" or wait == 'y':
+ pass
+ else:
+ os._exit(0)
+
if SAUCENAO_KEY():
print("用于SAUCENAO的钥匙已到手!")
else:
@@ -180,4 +204,4 @@ else:
if wait == "Y" or wait == 'y':
pass
else:
- os._exit(0)
+ os._exit(0) \ No newline at end of file