Skip to content
This repository has been archived by the owner on Nov 9, 2023. It is now read-only.

Commit

Permalink
添加提示性语言
Browse files Browse the repository at this point in the history
Took 9 minutes
  • Loading branch information
SinarPandora committed Jan 23, 2020
1 parent 3bbaf67 commit 9130238
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 10 deletions.
11 changes: 1 addition & 10 deletions conf/ssdl/example.ssdl
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,4 @@
10:回复{1}
11:回复{2}
12:回复{3}
13:如果句中出现{测试随机选择}时,执行步骤9
#14:如果内容为{套娃},执行步骤15
#15:当{变量C}的值不等于{停}时,回复{套娃},并等待2秒,并执行步骤15
#16:如果匹配{(.+?)( .+?)+}时,回复{你打字怎么带空格的?}
17:如果句中出现{测试发送者},当发送者的{QQ号}为{1211402231}时,回复{主人},否则回复{?叫我干啥}
18:如果句中出现{测试会话条件},当会话的{群号}为{811869638}时,回复{Ok},否则回复{?}
19:如果内容为{不准啊哈},当会话的{群号}为{607581390}时,回复{不准不准啊哈}
20:如果内容为{不准不准},当会话的{群号}为{607581390}时,回复{不准不准不准}
3002:如果内容为{套娃},发送{http://image.woshipm.com/wp-files/2016/11/FS4AJBRI44HH0UYuI48E.jpeg},或发送{http://g.search2.alicdn.com/img/bao/uploaded/i4/i3/TB1EjTTNpXXXXc2XFXXXXXXXXXX_!!0-item_pic.jpg},或回复{不许套娃},或回复{算了放过你了},或回复{我是套娃警察}
9999:如果内容为{不可以},回复{可以!}
13:如果句中出现{测试随机选择}时,执行步骤9
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import cn.hutool.cron.task.Task
import o.lartifa.jam.common.config.{JamConfig, SystemConfig}
import o.lartifa.jam.common.util.MasterUtil
import o.lartifa.jam.cool.qq.listener.RuleEngineListener
import o.lartifa.jam.pool.JamContext

/**
* 调整回复频率
Expand All @@ -17,6 +18,7 @@ class ChangeRespFrequency(val freq: Int) extends Task {
if (SystemConfig.debugMode) {
MasterUtil.notifyMaster(s"${JamConfig.name}的回复频率以变更为:$freq%")
}
JamContext.logger.get().log(s"${JamConfig.name}的回复频率以变更为:$freq%")
}
}

Expand Down
1 change: 1 addition & 0 deletions src/main/scala/o/lartifa/jam/model/tasks/GoASleep.scala
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ object GoASleep extends Task {
if (SystemConfig.debugMode) {
MasterUtil.notifyMaster(s"${JamConfig.name} 已经休眠")
}
JamContext.logger.get().log(s"${JamConfig.name} 已经休眠")
}
}
1 change: 1 addition & 0 deletions src/main/scala/o/lartifa/jam/model/tasks/WakeUp.scala
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ object WakeUp extends Task {
if (SystemConfig.debugMode) {
MasterUtil.notifyMaster(s"${JamConfig.name} 已苏醒")
}
JamContext.logger.get().log(s"${JamConfig.name} 已苏醒")
}
}

0 comments on commit 9130238

Please sign in to comment.