diff options
22 files changed, 141 insertions, 168 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..005f496 --- /dev/null +++ b/.gitignore @@ -0,0 +1,141 @@ +# Custom ignored +config.py + +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +share/python-wheels/ +*.egg-info/ +.installed.cfg +*.egg +MANIFEST + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.nox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +*.py,cover +.hypothesis/ +.pytest_cache/ +cover/ + +# Translations +*.mo +*.pot + +# Django stuff: +*.log +local_settings.py +db.sqlite3 +db.sqlite3-journal + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ + +# PyBuilder +.pybuilder/ +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# IPython +profile_default/ +ipython_config.py + +# pyenv +# For a library or package, you might want to ignore these files since the code is +# intended to run in multiple environments; otherwise, check them in: +# .python-version + +# pipenv +# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. +# However, in case of collaboration, if having platform-specific dependencies or dependencies +# having no cross-platform support, pipenv may install dependencies that don't work, or not +# install all needed dependencies. +#Pipfile.lock + +# PEP 582; used by e.g. github.com/David-OConnor/pyflow +__pypackages__/ + +# Celery stuff +celerybeat-schedule +celerybeat.pid + +# SageMath parsed files +*.sage.py + +# Environments +.env +.venv +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ + +# Spyder project settings +.spyderproject +.spyproject + +# Rope project settings +.ropeproject + +# mkdocs documentation +/site + +# mypy +.mypy_cache/ +.dmypy.json +dmypy.json + +# Pyre type checker +.pyre/ + +# pytype static type analyzer +.pytype/ + +# Cython debug symbols +cython_debug/ diff --git a/ATRI/modules/b64/__pycache__/__init__.cpython-38.pyc b/ATRI/modules/b64/__pycache__/__init__.cpython-38.pyc Binary files differdeleted file mode 100644 index b23fb54..0000000 --- a/ATRI/modules/b64/__pycache__/__init__.cpython-38.pyc +++ /dev/null diff --git a/ATRI/modules/response/__pycache__/__init__.cpython-37.pyc b/ATRI/modules/response/__pycache__/__init__.cpython-37.pyc Binary files differdeleted file mode 100644 index c5598a0..0000000 --- a/ATRI/modules/response/__pycache__/__init__.cpython-37.pyc +++ /dev/null diff --git a/ATRI/modules/response/__pycache__/__init__.cpython-38.pyc b/ATRI/modules/response/__pycache__/__init__.cpython-38.pyc Binary files differdeleted file mode 100644 index 692ea38..0000000 --- a/ATRI/modules/response/__pycache__/__init__.cpython-38.pyc +++ /dev/null diff --git a/ATRI/plugins/__pycache__/AIchangeFace.cpython-38.pyc b/ATRI/plugins/__pycache__/AIchangeFace.cpython-38.pyc Binary files differdeleted file mode 100644 index 7b41688..0000000 --- a/ATRI/plugins/__pycache__/AIchangeFace.cpython-38.pyc +++ /dev/null diff --git a/ATRI/plugins/__pycache__/BlackList.cpython-38.pyc b/ATRI/plugins/__pycache__/BlackList.cpython-38.pyc Binary files differdeleted file mode 100644 index 8857835..0000000 --- a/ATRI/plugins/__pycache__/BlackList.cpython-38.pyc +++ /dev/null diff --git a/ATRI/plugins/__pycache__/LearnRepo.cpython-38.pyc b/ATRI/plugins/__pycache__/LearnRepo.cpython-38.pyc Binary files differdeleted file mode 100644 index 354e866..0000000 --- a/ATRI/plugins/__pycache__/LearnRepo.cpython-38.pyc +++ /dev/null diff --git a/ATRI/plugins/__pycache__/UploadSqlite.cpython-38.pyc b/ATRI/plugins/__pycache__/UploadSqlite.cpython-38.pyc Binary files differdeleted file mode 100644 index 23bfbca..0000000 --- a/ATRI/plugins/__pycache__/UploadSqlite.cpython-38.pyc +++ /dev/null diff --git a/ATRI/plugins/__pycache__/animeSearch.cpython-38.pyc b/ATRI/plugins/__pycache__/animeSearch.cpython-38.pyc Binary files differdeleted file mode 100644 index 0eb788d..0000000 --- a/ATRI/plugins/__pycache__/animeSearch.cpython-38.pyc +++ /dev/null diff --git a/ATRI/plugins/__pycache__/chat.cpython-38.pyc b/ATRI/plugins/__pycache__/chat.cpython-38.pyc Binary files differdeleted file mode 100644 index 554119a..0000000 --- a/ATRI/plugins/__pycache__/chat.cpython-38.pyc +++ /dev/null diff --git a/ATRI/plugins/__pycache__/checkData.cpython-38.pyc b/ATRI/plugins/__pycache__/checkData.cpython-38.pyc Binary files differdeleted file mode 100644 index 5b80933..0000000 --- a/ATRI/plugins/__pycache__/checkData.cpython-38.pyc +++ /dev/null diff --git a/ATRI/plugins/__pycache__/hbook.cpython-38.pyc b/ATRI/plugins/__pycache__/hbook.cpython-38.pyc Binary files differdeleted file mode 100644 index dacd7b0..0000000 --- a/ATRI/plugins/__pycache__/hbook.cpython-38.pyc +++ /dev/null diff --git a/ATRI/plugins/__pycache__/hitokoto.cpython-38.pyc b/ATRI/plugins/__pycache__/hitokoto.cpython-38.pyc Binary files differdeleted file mode 100644 index 6cbbbb4..0000000 --- a/ATRI/plugins/__pycache__/hitokoto.cpython-38.pyc +++ /dev/null diff --git a/ATRI/plugins/__pycache__/other.cpython-38.pyc b/ATRI/plugins/__pycache__/other.cpython-38.pyc Binary files differdeleted file mode 100644 index 929d9da..0000000 --- a/ATRI/plugins/__pycache__/other.cpython-38.pyc +++ /dev/null diff --git a/ATRI/plugins/__pycache__/pixiv.cpython-38.pyc b/ATRI/plugins/__pycache__/pixiv.cpython-38.pyc Binary files differdeleted file mode 100644 index 7465bf7..0000000 --- a/ATRI/plugins/__pycache__/pixiv.cpython-38.pyc +++ /dev/null diff --git a/ATRI/plugins/__pycache__/richBISS.cpython-38.pyc b/ATRI/plugins/__pycache__/richBISS.cpython-38.pyc Binary files differdeleted file mode 100644 index 41c6d8f..0000000 --- a/ATRI/plugins/__pycache__/richBISS.cpython-38.pyc +++ /dev/null diff --git a/ATRI/plugins/__pycache__/send.cpython-38.pyc b/ATRI/plugins/__pycache__/send.cpython-38.pyc Binary files differdeleted file mode 100644 index 32a2760..0000000 --- a/ATRI/plugins/__pycache__/send.cpython-38.pyc +++ /dev/null diff --git a/ATRI/plugins/__pycache__/setu.cpython-38.pyc b/ATRI/plugins/__pycache__/setu.cpython-38.pyc Binary files differdeleted file mode 100644 index f7d0f07..0000000 --- a/ATRI/plugins/__pycache__/setu.cpython-38.pyc +++ /dev/null diff --git a/ATRI/plugins/__pycache__/switch.cpython-38.pyc b/ATRI/plugins/__pycache__/switch.cpython-38.pyc Binary files differdeleted file mode 100644 index 06e154a..0000000 --- a/ATRI/plugins/__pycache__/switch.cpython-38.pyc +++ /dev/null diff --git a/ATRI/plugins/__pycache__/welcome.cpython-38.pyc b/ATRI/plugins/__pycache__/welcome.cpython-38.pyc Binary files differdeleted file mode 100644 index cd6e3a0..0000000 --- a/ATRI/plugins/__pycache__/welcome.cpython-38.pyc +++ /dev/null diff --git a/ATRI/plugins/__pycache__/wordCloud.cpython-38.pyc b/ATRI/plugins/__pycache__/wordCloud.cpython-38.pyc Binary files differdeleted file mode 100644 index 2aec1e7..0000000 --- a/ATRI/plugins/__pycache__/wordCloud.cpython-38.pyc +++ /dev/null diff --git a/config.py b/config.py deleted file mode 100644 index b8291f4..0000000 --- a/config.py +++ /dev/null @@ -1,168 +0,0 @@ -import os -import time -from nonebot.default_config import * - -#配置监听的 IP 和 端口 -HOST = '127.0.0.1' -PORT = 8080 - -# 机器人的主人(QQ号)即 超级用户 -SUPERUSERS = [123456789] -def MASTER(): - return 123456789 - -# 机器人名称,替代 @ 和 命令开头 -NICKNAME = {'ATRI', '亚托莉', 'アトリ'} - -# 自定义命令开头 -COMMAND_START = {''} - -# API url:https://api.lolicon.app/#/setu -a = "" # key -def LOLICONAPI(): - return a - -# API url:https://www.faceplusplus.com.cn/ -b = "" -def FACE_KEY(): - return b - -c = "" -def FACE_SECRET(): - return c - -# API url:https://cloud.baidu.com/ -def BAIDU_APP_ID(): - return 123 # id - -d = "" # key -def BAIDU_API_KEY(): - return d - -e = "" # secret -def BAIDU_SECRET(): - return e - - - - - - - - - - - - - - -#以下请勿删除 - -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") - time.sleep(1) - 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 FACE_KEY(): - print("用于人脸识别的钥匙已到手!") -else: - print("貌似没拿到人脸识别的钥匙呢...如需帮助,请查看安装手册") - print("...跳过!") - time.sleep(1) - wait = input("是否继续: Y/N\n") - if wait == "Y" or 'y': - pass - else: - os._exit(0) - -if FACE_SECRET(): - print("用于人脸识别的验证码已到手!") -else: - print("貌似没拿到人脸识别的验证码呢...如需帮助,请查看安装手册") - print("...跳过!") - time.sleep(1) - wait = input("是否继续: Y/N\n") - if wait == "Y" or 'y': - pass - else: - os._exit(0) - -if BAIDU_APP_ID(): - print("用于图片识别的ID已到手!") -else: - print("貌似没拿到图片识别的ID呢...如需帮助,请查看安装手册") - print("...跳过!") - time.sleep(1) - wait = input("是否继续: Y/N\n") - if wait == "Y" or 'y': - pass - else: - os._exit(0) - -if BAIDU_API_KEY(): - print("用于图片识别的KEY已到手!") -else: - print("貌似没拿到图片识别的KEY呢...如需帮助,请查看安装手册") - print("...跳过!") - time.sleep(1) - wait = input("是否继续: Y/N\n") - if wait == "Y" or 'y': - pass - 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 'y': - pass - else: - os._exit(0)
\ No newline at end of file |