说明
- 本项目基于nonebot2和OneBot V11协议,使用本插件前请先阅读以上两个项目的使用文档
安装及更新
第一种方式(不推荐)
- 使用
git clone https://github.com/YouthLearning/XXQG.git指令克隆本仓库或下载压缩包文件
第二种方式(二选一)
- 使用
pip install XXQG来进行安装,使用pip install XXQG -U进行更新 - 使用
nb plugin install XXQG来进行安装,使用nb plugin install XXQG -U进行更新
导入插件
使用第一种方式安装看此方法
-
将
XXQG放在nb的plugins目录下,运行nb机器人即可 -
文件结构如下
📦 AweSome-Bot ├── 📂 awesome_bot │ └── 📂 plugins | └── 📂 XXQG | └── 📜 __init__.py ├── 📜 .env.prod ├── 📜 .gitignore ├── 📜 pyproject.toml └── 📜 README.md
使用第二种方式安装看此方法
- 在
pyproject.toml里的[tool.nonebot]中添加plugins = ["XXQG"]
机器人配置
HOST = "0.0.0.0" #nonebot2监听的IP
SUPERUSERS = [""] # 超级用户
COMMAND_START=[""] # 命令前缀,根据需要自行修改
local_browser_path="" # 本地浏览器程序路径 仅支持谷歌浏览器和Edge浏览器
功能列表
| 指令 | 指令格式 | 说明 |
|---|---|---|
| 登录学习强国 | 登录学习强国 | 登录学习强国 login 添加学习强国 |
| 任务进度 | 任务进度 progress 每日任务 | 查看每日得分情况 |
| 每日答题 | exam 每日答题 | 完成每日答题 5分/天 |
| 更新token | 更新token 刷新token updateToken | 刷新学习强国token |
| 文章选读 | read 每日阅读 文章选读 | 完成文章选读部分 12分/天 |
| 视听学习 | video 每日视频 视听学习 | 完成视听学习部分 12分/天 |
| 开始学习 | start 开始学习 每日学习 | 一键启动学习 文章 视频 答题 一共 29 分 |
ToDo
- 优化 Bot
更新日志
2024/07/11
- 将代码上传至pypi,可使用
pip install XXQG指令安装本插件 - 上传基础代码
Metadata
Release files for XXQG 0.0.2
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 |
|---|---|---|---|---|
| xxqg-0.0.2.tar.gz | 87.4 kB | Without provenance | Details for xxqg-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| xxqg-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for xxqg-0.0.2-py3-none-any.whl |
Total release size: 182.3 kB
Release files / xxqg-0.0.2.tar.gz
| Download URL | xxqg-0.0.2.tar.gz |
|---|---|
| Size | 87.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bbb65341efc81c5d913a2c28e6715db17bbc0a100ec0120d3b69e715d23b9127
|
|
BLAKE2b-256 checksum How to use checksums |
5c91d56e1594b58bc9ad7a1f24e0ce9a98c6465920d968db545dcf01c567b31b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|
Release files / xxqg-0.0.2-py3-none-any.whl
| Download URL | xxqg-0.0.2-py3-none-any.whl |
|---|---|
| Size | 94.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a3743dfe8b5ee9eb454809926cfa665f4df84496ce0d193e554953cd22b97f24
|
|
BLAKE2b-256 checksum How to use checksums |
99473e3dbe2b0c1a2a2714c21a4250d37948de7d17e4a29e4cbc41959dca585d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|
Security for XXQG 0.0.2
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.