📖 介绍
一个从 hoshino 抄借鉴的 nonebot2 签到插件
原项目地址: 签到奖励魔改版
💿 安装
使用 nb-cli 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装nb plugin install nonebot-plugin-hoshino-sign
使用包管理器安装
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令pip
pip install nonebot-plugin-hoshino-sign
pdm
pdm add nonebot-plugin-hoshino-sign
poetry
poetry add nonebot-plugin-hoshino-sign
conda
conda install nonebot-plugin-hoshino-sign
打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入
plugins = ["nonebot_plugin_hoshino_sign"]
⚙️ 配置
在 nonebot2 项目的.env文件中添加下表中的必填配置
| 配置项 | 必填 | 类型 | 默认值 | 说明 |
|---|---|---|---|---|
| NICKNAME | 是 | str | 脑积水 | 正经人一般都填了叭 |
| stamp_path | 否 | str | 插件目录 | 如果你不喜欢 pcr 的图片,你可以自己配置一个图片目录 |
(path 为: 绝对路径 或 相对于 bot.py 所在文件夹的路径)
注意: 图片最好为正方形, 不限制格式, 但需要文件名为 1.png, 2.jpg, 3.png, ......
🎉 使用
指令表
| 指令 | 权限 | 需要@ | 范围 | 说明 |
|---|---|---|---|---|
| 签到/盖章/妈! | 所有人 | 否 | 群聊、私聊、频道 | 签到(获得好感和 pcr 的印章) |
| 收集册(+QQ号/艾特) | 所有人 | 否 | 群聊、私聊、频道 | 查看自己或他人的收集进度 |
效果图
(来自原作者的话) ↓↓↓
红的是已经收集到的,灰的是没收集的
有群排行(卷,都可以卷)
素材来源:
https://tieba.baidu.com/p/6769790810
联系我吖
⚠️ 如果遇到任何部署、使用或二次开发上的问题或建议, 可以在 QQ频道: 我的中心花园-开发交流 找到我。
Metadata
Release files for nonebot-plugin-hoshino-sign 2.3.4
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 |
|---|---|---|---|---|
| nonebot_plugin_hoshino_sign-2.3.4.tar.gz | 85.4 MB | Without provenance | Details for nonebot_plugin_hoshino_sign-2.3.4.tar.gz |
Release files / nonebot_plugin_hoshino_sign-2.3.4.tar.gz
| Download URL | nonebot_plugin_hoshino_sign-2.3.4.tar.gz |
|---|---|
| Size | 85.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d0b6dafc634e727d3e92d87f0ee152e9be404aa3a79550b11271597151d70b5a
|
|
BLAKE2b-256 checksum How to use checksums |
bf1b9accc5fb94f96baac1f9ed08a35604998ccd5d21f68ddfe166384adfe90a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|
Security for nonebot-plugin-hoshino-sign 2.3.4
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.