Skip to main content

Fortune divination!

Reason this release was yanked:

适配alpha.16,版号回归0.1.x

Project description

Fortune

🙏 今日运势 🙏

版本

v0.2.0

⚠ 适配nonebot2-2.0.0alpha.16!

v0.2.0 22/1/22:

  1. 移除json数据中不必要的image_path记录;

  2. 更新抽签主题、特定签底的对应方式;

  3. 增加权限限制,仅管理员和超管有权更改抽签主题设置;

  4. 生成的图片(./resource/out下),每天刷新时自动清理;

  5. 代码结构优化;

安装

  1. 通过pippoetry安装;

  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点刷新(贪心的人是不会有好运的🤗);抽签的信息会保存在./resource/fortune_data.json内;抽签生成的图片当天会保存在./resource/out下;

  4. TODO:抽签设置分群管理,目前是全局设置参数;

命令

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

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

  3. 配置抽签主题:

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

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

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

本插件改自:

  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.2.0.tar.gz (29.0 MB view hashes)

Uploaded Source

Built Distribution

nonebot_plugin_fortune-0.2.0-py3-none-any.whl (29.1 MB view hashes)

Uploaded Python 3

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