Fortune divination!
Reason this release was yanked:
在v0.1.3中的bug
Project description
Fortune
🙏 今日运势 🙏
版本
v0.1.1
⚠ 适配nonebot2-2.0.0alpha.16;适配beta.1版本参见beta.1分支
安装
-
通过
pip
或nb
安装;版本请指定^0.1.1
;版号回归0.1.x
,原0.2.0
及0.2.1
版本仅适配alpha.16; -
抽签签底
img
、字体font
、文案fortune
等资源位于./resource
下,可在env
下设置FORTUNE_PATH
更改;
FORTUNE_PATH="your_path_to_resource" # 默认位于os.path.join(os.path.dirname(__file__), "resource"),具体查看data_source.py
- 占卜一下你的今日运势!🎉
功能
-
随机抽取今日运势,配置四种抽签主题:原神、PCR、Vtuber、东方;
-
可设置随机抽签主题或指定主题,也可指定角色签底(例如可莉、魔理沙、凯露、阿夸🥰);
-
每群每人一天限抽签1次,0点刷新(贪心的人是不会有好运的🤗);
-
抽签的信息会保存在
./resource/fortune_data.json
内;群抽签设置保存在./resource/fortune_setting.json
内;抽签生成的图片当天会保存在./resource/out
下;
命令
-
一般抽签:今日运势、抽签、运势;
-
指定签底并抽签:指定[xxx]签,具体配置位于
utils.py
下SpecificTypeList
; -
[群管及群主及超管] 配置抽签主题:
-
设置[原神/pcr/东方/vtb]签:设置群抽签主题;
-
重置抽签:设置群抽签主题为随机;
-
-
抽签设置:查看当前群抽签主题的配置;
效果
测试效果出自群聊。
本插件改自
-
opqqq-plugin,除功能函数外,由于要适配nonebot2,底层已大改;
-
感谢江樂丝提供东方签底
实际上可能是东方老哥提供的;
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
File details
Details for the file nonebot_plugin_fortune-0.1.1.tar.gz
.
File metadata
- Download URL: nonebot_plugin_fortune-0.1.1.tar.gz
- Upload date:
- Size: 29.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.0a2 CPython/3.8.10 Linux/5.4.0-96-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f283641c1f035f1d62004d9e10119d3666f38f961783c7cfbbe9e476cab5091 |
|
MD5 | 0a81e5183243ac2d0d2e9d70cf86b5cc |
|
BLAKE2b-256 | 7f4dfd8b63c51f578795f68c84a42f6bd4c069744ad713e42400090aeee5c7df |
Provenance
File details
Details for the file nonebot_plugin_fortune-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: nonebot_plugin_fortune-0.1.1-py3-none-any.whl
- Upload date:
- Size: 29.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.0a2 CPython/3.8.10 Linux/5.4.0-96-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7985e6465453787a3ef7cb7e4b9e89a17ca462891d2694b38b1a5a0bd93462d |
|
MD5 | 366b1163932f71a63b484223ace003d0 |
|
BLAKE2b-256 | 7f1b477d118673ca1fa15c6c4b0c6131add740b503365fcde85eb9bf9281b97e |