Awesome
xyao-brain-trunk
xyao-brain-trunk is a brain module of wechaty-plugin-xyao, it provides common features, such as setting up a notification, connecting rooms, playing dice , etc...
brain identifier
x
note:A prefix should be appended before instruction, e.g.
x:notify
Supported Instructions
notify
room & whisper
masterOnly
设置提醒。 私聊发送的指令,将会在私聊窗口提醒,而群组内发送的指令在群组内 @ 发送者提醒。
# 30 分钟后提醒我喝水
notify -d 30 hey,你该喝水了!
# 到 10:30 提醒我参加会议
notify -t "2020-08-03 09:30" 该去开会了!
# 每周五16:00 提醒写周报
notify -c "0 0 16 ? * FRI" 周报周报
# 列出当前有效的提醒
notify -l
# 删除 id 为 a35be3 的提醒
notify -r a35be3
dice
room
everyone
掷骰子。 返回1到6点。成绩默认保留30分钟。
# 掷骰子
dice
# 按大小和投掷时间顺序列出群组内各掷骰者的成绩
dice -l
Usage
- make sure you have already deployed a wechaty bot with plugin wechaty-plugin-xyao
- clone this project
- modify
application.properties
, config redis related parameters - use
mvn package
to build a executable jar - run the jar