Skip to main content

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分支

安装

  1. 通过pipnb安装;版本请指定^0.1.1;版号回归0.1.x,原0.2.00.2.1版本仅适配alpha.16;

  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
  1. 占卜一下你的今日运势!🎉

功能

  1. 随机抽取今日运势,配置四种抽签主题:原神、PCR、Vtuber、东方;

  2. 可设置随机抽签主题或指定主题,也可指定角色签底(例如可莉、魔理沙、凯露、阿夸🥰);

  3. 每群每人一天限抽签1次,0点刷新(贪心的人是不会有好运的🤗);

  4. 抽签的信息会保存在./resource/fortune_data.json内;群抽签设置保存在./resource/fortune_setting.json内;抽签生成的图片当天会保存在./resource/out下;

命令

  1. 一般抽签:今日运势、抽签、运势;

  2. 指定签底并抽签:指定[xxx]签,具体配置位于utils.pySpecificTypeList

  3. [群管及群主及超管] 配置抽签主题:

    • 设置[原神/pcr/东方/vtb]签:设置群抽签主题;

    • 重置抽签:设置群抽签主题为随机;

  4. 抽签设置:查看当前群抽签主题的配置;

效果

测试效果出自群聊。

display

本插件改自

  1. opqqq-plugin,除功能函数外,由于要适配nonebot2,底层已大改;

  2. 感谢江樂丝提供东方签底实际上可能是东方老哥提供的

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

nonebot_plugin_fortune-0.1.1.tar.gz (29.0 MB view details)

Uploaded Source

Built Distribution

nonebot_plugin_fortune-0.1.1-py3-none-any.whl (29.1 MB view details)

Uploaded Python 3

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

Hashes for nonebot_plugin_fortune-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2f283641c1f035f1d62004d9e10119d3666f38f961783c7cfbbe9e476cab5091
MD5 0a81e5183243ac2d0d2e9d70cf86b5cc
BLAKE2b-256 7f4dfd8b63c51f578795f68c84a42f6bd4c069744ad713e42400090aeee5c7df

See more details on using hashes here.

Provenance

File details

Details for the file nonebot_plugin_fortune-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_fortune-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c7985e6465453787a3ef7cb7e4b9e89a17ca462891d2694b38b1a5a0bd93462d
MD5 366b1163932f71a63b484223ace003d0
BLAKE2b-256 7f1b477d118673ca1fa15c6c4b0c6131add740b503365fcde85eb9bf9281b97e

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page