Fortune divination!
Reason this release was yanked:
同v0.3.2的bug
Project description
Fortune
🙏 今日运势 🙏
版本
v0.2.2
⚠ 适配nonebot2-2.0.0beta.1;适配alpha.16版本参见alpha.16分支
安装
-
通过
pip
或nb
安装,版本请指定^0.2.2
; -
抽签签底
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.2.2.tar.gz
.
File metadata
- Download URL: nonebot_plugin_fortune-0.2.2.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 | bc63325b542f11936ea04e960b00d1fc34cede7cf2f838fd0248661acd67517e |
|
MD5 | 2549e46db5917f4a301e165643c8e85c |
|
BLAKE2b-256 | a112ff78b2f2cc681b77a430f7aa5b904ed7ccb18e247ea75a301e18d84917aa |
Provenance
File details
Details for the file nonebot_plugin_fortune-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: nonebot_plugin_fortune-0.2.2-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 | 6308851c943b48a4835f49f19c327752a3fb6f1662074039956bce3e93ce8cf8 |
|
MD5 | 1f5770af259a1e5a5a1a25f4ac33cba8 |
|
BLAKE2b-256 | 4e0faacf4974d79727fadab707e18af2fd56ef8f443dc1056290f3774f56d5c1 |