nonebot plugin firexN
Project description
🔥 nonebot-plugin-firexN
✨ 定时发送QQ消息插件 ✨
插件描述
避免尴尬,从我做起
定时早晚各发一条信息(以防早上忘记回复,晚上还有第二次提醒),默认调用API随机发送一句,也可以自定义发送消息的内容及时间。当然如果你愿意花一些心思去读代码,此插件还可以改成你需要的定时提醒工具(再加几个定时器,喝水小助手不就有了么!)
本人未系统学习过py,靠仅有的cpp和py的一点点理解制作的,如果有任何问题、建议,欢迎issues
依赖
本插件依赖定时任务,首先确保自己有nonebot_plugin_apscheduler
(pip list查看),安装命令
pip install nonebot_plugin_apscheduler
安装
pip install nonebot_plugin_firexN
配置项
在bot.py中添加
nonebot.load_plugin("nonebot-plugin-firexN")
在.evn
中配置参数说明
fire_users = ["xxx","xxx"] # 必填 联系人QQ
fire_mode = 1 # 必填 模式1发送自定义句子,模式2随机调用一句
fire_sentence_moring = ["句子1","句子2","..."] # 如果是模式1 此项必填,早上随机发送该字段中的一句
fire_sentence_night = ["句子1","句子2","..."] # 如果是模式1 此项必填,晚上随机发送该字段中的一句
fire_time_moring = "8 0" # 选填 早上发送时间默认为7:00
fire_time_night = "23 0" # 选填 晚上发送时间默认为22:00
配置示例
模式1
fire_users = ["1310446718","2689438597"] # 必填 联系人QQ
fire_mode = 1 # 必填 模式1发送自定义句子,模式2随机调用一句
fire_sentence_moring = ["🌞早,又是元气满满的一天","句子2","..."] # 如果是模式1 此项必填,早上随机发送该字段中的一句
fire_sentence_night = ["🌛今天续火花了么,晚安啦","句子2","..."] # 如果是模式1 此项必填,晚上随机发送该字段中的一句
fire_time_moring = "8 0" # 选填 早上发送时间默认为7:00
fire_time_night = "23 0" # 选填 晚上发送时间默认为22:00
模式2
fire_users = ["xxx","xxx"] # 必填 联系人QQ
fire_mode = 2 # 必填 模式1发送自定义句子,模式2随机调用一句
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for nonebot_plugin_firexN-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e51f27f392e5ec6b8ce61e1479368d8d58a9655b673f6da882917851fba09a0 |
|
MD5 | 243c1f174c1b63ce97df7deb7f34b4f6 |
|
BLAKE2b-256 | 46f31960c3c01b750f5f4cb73087f05b4fb1a2d4a5af035f630a1179d28f0f71 |