播报群友 Steam 游戏状态
Project description
📖 介绍
在群内播报群友的 Steam 游戏状态
💿 安装
使用 nb-cli 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装nb plugin install nonebot-plugin-steam-game-status
使用包管理器安装
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令pip
pip install nonebot-plugin-steam-game-status
pdm
pdm add nonebot-plugin-steam-game-status
poetry
poetry add nonebot-plugin-steam-game-status
conda
conda install nonebot-plugin-steam-game-status
更新
pip install nonebot-plugin-steam-game-status --upgrade
打开 nonebot2 项目根目录下的 pyproject.toml
文件, 在 [tool.nonebot]
部分追加写入
plugins = ["nonebot_plugin_steam_game_status"]
⚙️ 配置
在 nonebot2 项目的.env
文件中添加下表中的必填配置
配置项 | 必填 | 默认值 | 类型 | 说明 |
---|---|---|---|---|
steam_web_key | 是 | 无 | str 或 list | Steam Api Key |
steam_command_priority | 否 | 5 | int | 事件处理函数优先级 |
steam_proxy | 否 | None | str | 代理 |
steam_proxy 示例
# .env.xxx
steam_proxy="http://ip:port"
单个 steam key 配置示例
# .env.xxx
steam_web_key=123456789QWERTYUII123456789
# or 引号包裹
steam_web_key="123456789QWERTYUII123456789"
# 若字符串形式key绑定失败,请改写为以下多key配置
多个 steam key 配置示例
# .env.xxx
steam_web_key='[
"123456789QWERTYUII123456789",
"123456789",
"987654321",
]'
# or 无引号包裹
steam_web_key=["123456789QWERTYUII123456789","123456789","987654321"]
🎉 使用
获取SteamID64
Steam 桌面网站或桌面客户端:点开右上角昵称下拉菜单,点击账户明细,即可看到 Steam ID
Steam 应用:点击右上角头像,点击账户明细,即可看到 Steam ID
获取Steam好友代码
Steam 桌面网站或桌面客户端:点开导航栏 好友 选项卡,点击添加好友,即可看到 Steam 好友代码
Steam 应用:点击右上角头像,点击好友,点击添加好友,即可看到 Steam 好友代码
指令表
指令 | 需要@ | 范围 | 权限 | 说明 |
---|---|---|---|---|
steam绑定/steam添加/steam.add | 否 | 群聊 | 群员 | 后加个人SteamID64或好友代码 |
steam解绑/steam删除/steam.del | 否 | 群聊 | 群员 | 后加个人SteamID64 |
steam列表/steam绑定列表 | 否 | 群聊 | 超管/群管 | 管理员命令 |
steam播报开启/steam播报打开 | 否 | 群聊 | 超管/群管 | 管理员命令 |
steam播报关闭/steam播报停止 | 否 | 群聊 | 超管/群管 | 管理员命令 |
创意来源
群友的 koishi bot 的该效果插件
注意事项
1.不支持播报非 Steam 游戏
2.不支持播报 Steam 隐身状态下进行的游戏
更新记录
2024.04.28
- steam列表 合并消息优化
2024.02.29
- 新增游戏中文名播报,感谢 6DDUU6 的 PR
- 顺应 Nonebot 规范,缓存文件迁移至用户目录下,详见 plugin-localstore
- 调整数据结构,节省 key
- 变更原缓存记录从 每次读取文件 更改为 持续在内存中
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
Close
Hashes for nonebot-plugin-steam-game-status-0.1.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7558ffbbd57c9ad3d37c67c6888484b423dd8137d9db3c0d3248b49f71f0cb5a |
|
MD5 | 7bf9583f078ca0f3ec6713cf727231c0 |
|
BLAKE2b-256 | aa213f1fd760ed34ee45d347d65c0d0cb9ae9b2e1fb8e7c3cc2bb1cdeb75ef46 |
Close
Hashes for nonebot_plugin_steam_game_status-0.1.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 215317bc69bab0c58c554b0b3961319d9444a0b70c16ab466e67919807b89ac1 |
|
MD5 | 085e173450e4ef8fde8d36d556593919 |
|
BLAKE2b-256 | db0045cf9e6a891c2c2837bbc0e5427241a626028b123e433e1895f52f76d6c5 |