AGenshinDot
AGenshinDot 是 GenshinDot 的 Python 实现,由 Graia-Ariadne 驱动.
声明
AGenshinDot 遵循 AGPLv3 许可协议开放全部源代码,你可在这里找到本项目的许可证.
AGenshinDot 仅供学习娱乐使用,禁止将此 Bot 用于商用和非法用途.
AGenshinDot 项目及作者不对因使用本项目所造成的损失进行赔偿,也不承担任何法律责任.
安装
从 PyPI 安装
pip install agenshindot
# or
poetry add agenshindot
从 GitHub 安装
1.直接安装
poetry add git+https://github.com/MingxuanGame/AGenshinDot.git
2.克隆后安装
git clone https://github.com/MingxuanGame/AGenshinDot.git
cd AGenshinDot
poetry install --no-dev
配置
所有配置均保存在运行目录 config.toml.
下面为配置样例:
# 机器人 QQ 号
account = 1185285105
# verifyKey
verify_key = "agenshindot"
# 是否启用控制台
enable_console = false
# 是否开启 Cookie 绑定
enable_bind_cookie = false
# 机器人管理员 QQ 号
admins = [1060148379]
# 以下为连接配置
# 如果不配置则默认为 HTTP + 正向 WebSocket,连接地址为 localhost:8080
# 可以同时配置多种连接
# 正向 WebSocket 配置
ws = "ws://localhost:8080"
# 等同于如下配置
# ws = ["ws://localhost:8080"]
# HTTP 配置
http = "http://localhost:8080"
# 等同于如下配置
# http = ["http://localhost:8080"]
# 反向 WebSocket 配置
[ws_reverse]
# Endpoint
path = "/"
# 验证的参数
params = {}
# 验证的请求头
headers = {}
# WARNING 上面的配置要保证不能缺失,也不能调换位置
# 如果只需要设置 Endpoint,也可以使用下方的配置
# ws_reverse = "/"
# HTTP Webhook 配置
[webhook]
# Endpoint
path = "/"
# 验证的请求头
headers = {}
# WARNING 上面的配置要保证不能缺失,也不能调换位置
# 如果只需要设置 Endpoint,也可以使用下方的配置
# webhook = "/"
# 日志配置
[log]
# 日志等级,详情请看 loguru 文档
level = "INFO"
# 过期时间,过期的日志将被删除,格式请看
# https://pydantic-docs.helpmanual.io/usage/types/#datetime-types
# 中 `timedelta` 部分
expire_time = "P14DT0H0M0S"
# 是否启用数据库日志
db_log = false
启动
1.执行本项目文件夹下的 bot.py
python bot.py
2.以模块形式启动
python -m agenshindot
控制台命令
WARNING 控制台属于实验性内容,不建议使用
启用控制台后,会禁用标准输出中 日志等级 的设置
在启用控制台后,可以输入以下命令执行一些操作
-
/stop关闭 AGenshinDot.
-
/license输出许可证信息.
-
/version输出 AGenshinDot LOGO 和版本信息.
-
/execute <SQL 语句>执行 SQL 语句 (危险操作)
Metadata
Release files for agenshindot 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| agenshindot-0.2.0.tar.gz | 4.7 MB | Without provenance | Details for agenshindot-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| agenshindot-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for agenshindot-0.2.0-py3-none-any.whl |
Total release size: 9.5 MB
Release files / agenshindot-0.2.0.tar.gz
| Download URL | agenshindot-0.2.0.tar.gz |
|---|---|
| Size | 4.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
867c472fbb4421a728065a925faddb3da97050728ab86ad392c99b01f52242a5
|
|
BLAKE2b-256 checksum How to use checksums |
ecbba0a9652abc20d53c7d2bffbb0e27e771a710e9169aa08ade74fba02704ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.10.4 Windows/10
|
Release files / agenshindot-0.2.0-py3-none-any.whl
| Download URL | agenshindot-0.2.0-py3-none-any.whl |
|---|---|
| Size | 4.8 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a9c7f05d8ec2a6fc9e9338bcc18b26bff791cc367318002ecc9d66a483b90dbc
|
|
BLAKE2b-256 checksum How to use checksums |
d5bfefb7cc762696fd5ae90fc66164eb565c75ad6655168d95874d5abd991a19
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.10.4 Windows/10
|
Security for agenshindot 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.