Skip to main content
NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-kfc-crazy

✨ 🍗 疯狂星期四 🍗 ✨

license pypi python

📖 介绍

一个适用于 NoneBot2 和 OneBot V11 QQ 机器人的疯狂星期四语录插件。

  • 在群聊或私聊中发送完整消息 疯狂星期四,机器人随机回复一条语录,无需命令前缀或 @。
  • 每周星期四上午 10:00(北京时间,Asia/Shanghai),机器人向配置的 QQ 群自动发送随机语录。
  • 两种发送方式均从 nonebot_plugin_kfc_crazy/post.json 的 post 数组中随机选取语录,并沿用相同的文本处理逻辑。

💿 安装

定时功能依赖 nonebot-plugin-apscheduler。通过下列方式安装本插件时会一并安装该依赖,插件加载时也会自动加载 APScheduler,无需重复添加。

使用 nb-cli 安装 在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
nb plugin install nonebot-plugin-kfc-crazy
使用包管理器安装 在 nonebot2 项目根目录下打开命令行,使用运行机器人的 Python 环境,根据你使用的包管理器执行相应的安装命令:
pip
pip install nonebot-plugin-kfc-crazy
pdm
pdm add nonebot-plugin-kfc-crazy
poetry
poetry add nonebot-plugin-kfc-crazy
conda
conda install nonebot-plugin-kfc-crazy

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

plugins = ["nonebot_plugin_template"]

⚙️ 配置

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

KFC_CRAZY_GROUP_IDS=[123456789,987654321]
配置项 必填 默认值 说明
kfc_crazy_group_ids 否 [] 定时发送的 QQ 群号集合,重复群号会自动去重。

不配置或设置为 [] 时,不发送定时群消息,修改配置后需重启机器人。

定时任务固定使用北京时间,每周四上午 10:00 执行。

🎉 使用

指令表

指令 权限 需要@ 范围 说明
疯狂星期四 所有人 否 群聊、私聊 随机回复一条疯狂星期四语录,手动触发不限星期。

直接发送完整消息 疯狂星期四 即可,无需 / 等命令前缀。其他星期或日文触发词不属于本插件的指令。

配置目标群后,每周四上午 10:00 会自动发送语录,不需要群成员发送指令。

效果图

Metadata

Release files for nonebot-plugin-kfc-crazy 0.0.1

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-kfc-crazy 0.0.1
File Size Uploaded
nonebot_plugin_kfc_crazy-0.0.1.tar.gz 47.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nonebot-plugin-kfc-crazy 0.0.1
File Interpreter ABI Platform
nonebot_plugin_kfc_crazy-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 93.3 kB

Release files / nonebot_plugin_kfc_crazy-0.0.1.tar.gz

Download URL nonebot_plugin_kfc_crazy-0.0.1.tar.gz
Size 47.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a82462d6d9e56fef6833b82677acce403e40d1b1ddad26f30f4af3e9534bb5e3
BLAKE2b-256 checksum
How to use checksums
22a524c08658be1807b4ea9dbb5e6b1276356e8a12616a18ec42d40e9770d047
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / nonebot_plugin_kfc_crazy-0.0.1-py3-none-any.whl

Download URL nonebot_plugin_kfc_crazy-0.0.1-py3-none-any.whl
Size 46.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
db0ffd439c6c6f3ef4a494110f0f6063aae4eedbdbb6eaff4ef1ff80c6f09530
BLAKE2b-256 checksum
How to use checksums
9baca4f794274c5303f5e753addc9839800394e7b55a6430020f1cc26eacc03c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

This release

0.0.1 This release

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