Nearcade Reporter Plugin
Project description
一个接入 Nearcade 支持 正则命名分组 与 多机厅别名配置 查询 / 更新街机厅当前人数 的 NoneBot2 插件
🚀 使用示例
查询人数:
秋叶原几人
akiba几人
更新人数:
机厅人数 秋叶原 12
机厅人数 ikebukuro 30
搜索机厅:
查找机厅 keywrod
搜索机厅只有SUPERUSERS可用
⚙️ 配置方式
查询人数
QUERY_ATTENDANCE_MATCH='{
"enabled": true,
"pattern": "^(?P<arcade>\\\\S+)几人$",
"reply_message": "{arcade} 当前人数: {count}"
}'
更新人数正则
UPDATE_ATTENDANCE_MATCH='{
"enabled": true,
"pattern": "^机厅人数\\\\s*(?P<arcade>\\\\S+)\\\\s*(?P<count>(?:100|[1-9]\\\\d?|0))$",
"reply_message": "更新成功,{arcade} 当前人数: {count}"
}'
机厅配置
ARCADES='{
"1001": {
"arcade_source": "bemani",
"aliases": ["秋叶原", "akiba"],
"default_game_id": 1001
}
}'
请先使用搜索机厅获取机厅ID与机台GameID
⚠️ 注意事项
正则表达式中必须给机厅别名分组命名 arcade 人数命名 count
环境变量中的 JSON 必须是合法 JSON
正则中的反斜杠需要 双重转义(例如 \S、\s、\d)
Project details
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_nearcade_reporter-0.1.2.tar.gz.
File metadata
- Download URL: nonebot_plugin_nearcade_reporter-0.1.2.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.12.9 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0289710efcdd50a7920cbffc8ec094174e774d829e1c80ef06cce1e0b81cffdc
|
|
| MD5 |
5fe76ad587b1de6d37fb09770047d69d
|
|
| BLAKE2b-256 |
a3e5989f05e2d3b7f6137e932f0e22de031390da069335b09de0d39431247181
|
File details
Details for the file nonebot_plugin_nearcade_reporter-0.1.2-py3-none-any.whl.
File metadata
- Download URL: nonebot_plugin_nearcade_reporter-0.1.2-py3-none-any.whl
- Upload date:
- Size: 12.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.12.9 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d7f17bc63a152b9ca33e1eaa5b554943392f147ee272cbaa42b30cafad3156a
|
|
| MD5 |
dcb1048a900fc499f1c3d3bb609e12a1
|
|
| BLAKE2b-256 |
a079d440664dcb7c203d38a8cd58567433dbbebae0c6ff53d4a7e8bc6331d050
|