Subscribe to Ret 2 Shell (回归终端) event API and forward messages.
Project description
nonebot-plugin-ret2shell
✨ 播报 Ret 2 Shell (回归终端) 比赛事件 ✨
📖 介绍
接入 Ret 2 Shell (回归终端) 事件推送 API,根据比赛发生的事件类型,实时向指定的群组或管理员账号播报。
💿 安装
在 NoneBot 机器人项目的根目录下执行插件安装命令:
nb plugin install nonebot-plugin-ret2shell
⚙️ 配置
在 dotenv 配置文件中填入配置:
| 配置项 | 必填 | 说明 |
|---|---|---|
| RET2SHELL_WS_LINK | 是 | 平台事件推送 API 链接 |
| TARGET_GROUP_ID | 否 | 比赛群号 |
| ADMIN_ID | 否 | 管理员号 |
示例:
DRIVER=~fastapi+~websockets
RET2SHELL_WS_LINK=ws://ret.sh.cn/api/event/connect?game_id=1&token=mn7Me1rkMLUbJj-iyHbu0
TARGET_GROUP_ID=123456789
ADMIN_ID=987654321
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nonebot_plugin_ret2shell-0.0.1.tar.gz.
File metadata
- Download URL: nonebot_plugin_ret2shell-0.0.1.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7e7802cb4a434b5be71ed52eb6ae7ceff2989eb9430e2862c654390b074272a
|
|
| MD5 |
7c68045acd32f9800833cf41208e0aa2
|
|
| BLAKE2b-256 |
6c8b833eecf8fe14c92ba769d5de8cf34e25dd538e4f63f15b9003857c9e7296
|
File details
Details for the file nonebot_plugin_ret2shell-0.0.1-py3-none-any.whl.
File metadata
- Download URL: nonebot_plugin_ret2shell-0.0.1-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b9410def3dc33755ff26a3cac6669ccec533b4abfe5b3217c5f9738a29ac3a2f
|
|
| MD5 |
14b00501029858b9c4b6e54574d5adcb
|
|
| BLAKE2b-256 |
2f16fa6f4716881a90c029dc22ccf48e4fdff93118d647d17efa9cb2f0ae0779
|