-
Notifications
You must be signed in to change notification settings - Fork 3
Home
Samarium edited this page May 28, 2022
·
6 revisions
- Java 11 及以上
-
mirai-console
本插件最新版目前只在 2.11.1 做了测试(只在最新版测试的屑) - 启动器
应该没人想手动启动mirai-console, 如果想, 请看 这里
启动器推荐官方的 MCL,使用方法参见官方 用户手册 -
chat-command
允许在聊天环境执行命令, 下载release中的jar文件并放入plugins
文件夹中
直接将Release中的mirai-console-loafers-calendar.*.mirai.jar
放到plugins
中, 重新启动控制台即可
如果MCL文件夹里没有plugins
这个文件夹, 就先启动一次
-
io.github.samarium150.mirai.plugin.mirai-console-loafers-calender:command.loafers-calendar
获取摸鱼人日历指令 -
io.github.samarium150.mirai.plugin.mirai-console-loafers-calender:command.subscribe-loafers-calendar
订阅日历的更新 -
io.github.samarium150.mirai.plugin.mirai-console-loafers-calender:command.unsubscribe-loafers-calendar
取消订阅日历的更新 -
io.github.samarium150.mirai.plugin.mirai-console-loafers-calender:command.clean-calendar-cache
清理日历缓存指令
在console
使用/perm permit * io.github.samarium150.mirai.plugin.mirai-console-loafers-calendar:*
来赋予所有联系对象使用本插件所有命令的权限
配置文件位于config/io.github.samarium150.mirai.plugin.mirai-console-loafers-calendar
目录下
配置文件只能在console
关闭时修改
以下是完整的配置文件的参考:
# 是否保存图片
save: true
# Cron表达式
cron: '0 0 12 ? * MON-SAT *'
# 执行Cron表达式的时区
timezone: 'GMT+08:00'
- 插件将在符合
cron
表达式的时间进行日历图片的更新,并推送到所有订阅了的好友和群里,默认为北京时间每周一到周六的中午12点 - 什么是cron表达式
# 获取摸鱼人日历指令的别名
getLoafersCalendar:
- lc
- 摸鱼人日历
# 订阅摸鱼人日历指令的别名
subscribeCalendar:
- slc
- 订阅日历
# 取消订阅摸鱼人日历指令的别名
unsubscribeCalendar:
- ulc
- 取消订阅日历
# 清理日历缓存指令的别名
cleanCalendarCache:
- ccc
- 清理日历缓存
因为更换依赖,quartz.properties在
1.6.0
之后不再支持
-
(/)loafers-calendar [date]
获取摸鱼人日历指令。不指定date
参数时,获取当天的日历图片。指定date
参数时,获取相应的日历图片。注意:date
参数需要符合yyyyMMdd
的格式。 -
(/)subscribe-loafers-calendar
订阅日历的更新,私聊使用时需要是bot的好友,群聊使用时需要是群主或者管理员。更新推送时间由配置文件中的cron表达式决定 -
(/)unsubscribe-loafers-calendar
取消订阅日历的更新,私聊使用时需要是bot的好友,群聊使用时需要是群主或者管理员。 -
(/)clean-calendar-cache [date]
清理日历缓存。不指定date
参数时,清理全部日历图片。指定date
参数时,清理相应的日历图片。注意:date
参数需要符合yyyyMMdd
的格式。
Copyright © 2020-2022 Samarium