Skip to main content
NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-bafortune

✨ 蔚蓝档案今日运势插件 ✨

license pypi python

📖 介绍

《蔚蓝档案》今日运势插件,支持多平台,高自定义

💿 安装

使用 nb-cli 安装 在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
nb plugin install nonebot-plugin-bafortune
使用包管理器安装 在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
pip
pip install nonebot-plugin-bafortune

打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入

plugins = ["nonebot_plugin_bafortune"]

⚙️ 配置

必填配置

在 nonebot2 项目的.env文件中添加下表中的必填配置

配置项 类型 必填 默认值 说明
bafortune_api str 是 "none" 图片API,可选:wr lolicon local custom none
详细请看下面
  • wr是插件作者自己的蔚蓝档案图片api
  • lolicon是lolicon api
  • local是本地图片,其路径可在本插件安装后使用nb localstore指令查看,请将图片存放在data路径中的image文件夹内,可看:localstore
  • custom为自定义api,需自行编辑config.py文件中的get_image_custom_api函数
  • none为不发送图片,注意:此选项同时需要配置bafortune_i_sure_not_to_use_image = true 如果你是小白,直接填bafortune_api = "wr"或bafortune_api = "lolicon"即可

选填配置

配置项 类型 必填 默认值 说明
bafortune_jrys_titles list[str] 否 ["凶", "稳", "顺", "大顺", "小吉", "吉", "大吉", "运"] 今日运势标题,总共有8个,对应7颗⭐
bafortune_jrys_messages list[str] 否 ["长夜再暗,火种仍在,转机终会到来。","微光不灭,步步向前,黎明就在眼前。","心怀希冀,顺流而行,好事悄然靠近。","逆境翻篇,机遇迎面,惊喜不期而至。","小吉随身,难题化易,幸运与你并肩。","吉星高照,所行皆坦,所愿皆如愿。","福泽深厚,大吉加身,一路花开有声。","七星同耀,奇迹频现,今日万事皆成。"] 今日运势文案,总共有8个
bafortune_allow_refresh_jrys bool 否 false 是否允许所有人刷新自己的今日运势,否为只允许超级管理员
bafortune_jrys_extra_message str 否 "" 今日运势文案后附加的额外信息
bafortune_auto_refresh_jrys bool 否 true 是否每日刷新今日运势
bafortune_proxy str 否 "" 代理(魔法)地址,对所有api有效,一般clash等软件默认地址为http://127.0.0.1:7890
bafortune_i_sure_not_to_use_image bool 否 false 我·确·认·不·想·用·图·片❤

🎉 使用

指令表

指令 权限 需要@ 范围 说明
今日运势 所有人 否 私聊、群聊 直接发送即可
/刷新今日运势 超级管理员/所有人(看配置) 否 私聊、群聊 刷新自己的今日运势
/刷新全局今日运势 超级管理员 否 私聊、群聊 刷新所有人的今日运势
/刷新今日运势图片列表 超级管理员 否 私聊、群聊 重新加载本地图片列表,仅对选择了本地图片的有效

请将斜杠/改为你配置的命令起始符

效果图

📃 更新日志

1.0.8(2025.09.07)

  • 🧋插件发布

Metadata

Release files for nonebot-plugin-bafortune 1.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nonebot-plugin-bafortune 1.0.8
File Size Uploaded
nonebot_plugin_bafortune-1.0.8.tar.gz 20.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nonebot-plugin-bafortune 1.0.8
File Interpreter ABI Platform
nonebot_plugin_bafortune-1.0.8-py3-none-any.whl Python 3 none any Details

Total release size: 40.9 kB

Release files / nonebot_plugin_bafortune-1.0.8.tar.gz

Download URL nonebot_plugin_bafortune-1.0.8.tar.gz
Size 20.0 kB
Tags Source
SHA-256 checksum
How to use checksums
9cf9c99cbe09844b98851dae155a1d05abb00cc1505d8374705399af1a281dc7
BLAKE2b-256 checksum
How to use checksums
4005767537cce214459e848dcc4c3afc724914b1f7ceb2e7e62dad914d5ae751
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.10.12 Linux/5.15.0-136-generic

Release files / nonebot_plugin_bafortune-1.0.8-py3-none-any.whl

Download URL nonebot_plugin_bafortune-1.0.8-py3-none-any.whl
Size 20.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3aee9c4237f69f276e8caa11001dcd34ab3d7c1c335e8fbd72aa8c618acf220f
BLAKE2b-256 checksum
How to use checksums
6bdaf9538563613ef486149161ddca919e537f1f17c9891875c47e4eeacb46b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.10.12 Linux/5.15.0-136-generic

Release history Release notifications | RSS feed

This release

1.0.8 This release

2 release files

1.0.7

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page