diff options
Diffstat (limited to 'config.py')
-rw-r--r-- | config.py | 111 |
1 files changed, 111 insertions, 0 deletions
diff --git a/config.py b/config.py new file mode 100644 index 0000000..d1e4198 --- /dev/null +++ b/config.py @@ -0,0 +1,111 @@ +# -*- coding:utf-8 -*- +import os +import time +from nonebot.default_config import * + +#配置监听的 IP 和 端口 +HOST = '127.0.0.1' +PORT = 8080 + +#机器人的主人(QQ号) +SUPERUSERS = [1172294279] + +#机器人名称,替代 @ 和 命令开头 +NICKNAME = {} + +#自定义命令开头 +COMMAND_START = {} + +#API url:https://api.lolicon.app/#/setu +LOLICONAPI = "574300555ee56eb2be5e03" + +#API url:https://ai.qq.com/ +TX_APP_ID = "2149641190" +TX_APPKEY = "Au8cFoAPWyGJBGpv" + + + + + + + + + + + + + + + +#以下请勿删除 + +print("正在导入记忆模块ing...") + +if SUPERUSERS: + print("主人已识别!") +else: + print("ATRI无法从记忆储蓄模块找到主人...如需帮助,请查看安装手册") + time.sleep(1) + print("仿生人没有主人是无法继续存在的!将于三秒后执行休眠...") + time.sleep(3) + os._exit(0) + +if NICKNAME: + print("对ATRI的特别称呼已加载!") +else: + print("ATRI没特别的小昵称嘛...彳亍8") + print("既然这样那叫我ATRI就好力!") + NICKNAME = {'ATRI', 'アトリ'} + time.sleep(1) + wait = input("是否继续: Y/N\n") + if wait == "Y" or 'y': + pass + else: + os._exit(0) + +if COMMAND_START: + print("呼叫指令已加载!") +else: + print("如果没指定特别呼叫ATRI的手势的话,直接称呼我名称吧!") + COMMAND_START = {'ATRI', ''} + time.sleep(1) + wait = input("是否继续: Y/N\n") + if wait == "Y" or 'y': + pass + else: + os._exit(0) + +if LOLICONAPI: + print("涩图大门的钥匙已到手!") +else: + print("似乎没拿到大门的钥匙呢...如需帮助,请查看安装手册") + print("...跳过!") + time.sleep(1) + wait = input("是否继续: Y/N\n") + if wait == "Y" or 'y': + pass + else: + os._exit(0) + +if TX_APP_ID: + print("TX知识库识别码已加载!") +else: + print("ATRI无法在记忆储蓄模块找到TX知识库识别码呢...如需帮助,请查看安装手册") + print("...跳过!") + time.sleep(1) + wait = input("是否继续: Y/N\n") + if wait == "Y" or 'y': + pass + else: + os._exit(0) + +if TX_APPKEY: + print("TX识别密匙已加载!") +else: + print("ATRI无法在记忆模块中找到TX识别密匙呢...如需帮助,请查看安装手册") + time.sleep(1) + wait = input("是否继续: Y/N\n") + if wait == "Y" or 'y': + pass + else: + os._exit(0)
\ No newline at end of file |