dsh-line-bot 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/lib/nudge.mjs +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/lib/nudge.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// 大肥魚主動傳訊排程。執行在 host 裡(不用 launchd),所有參數都由面板調整:
|
|
2
2
|
// 機率、間隔、每日/每月上限、安靜時段、冷卻時間、指定對象;每次真的送出才記帳。
|
|
3
3
|
const DEFAULT_PROMPT =
|
|
4
|
-
'(主動傳訊)現在輪到你主動找對方說話。用一兩句自然、像訊息的短句開場,不要提「系統」「排程」「AI
|
|
4
|
+
'(主動傳訊)現在輪到你主動找對方說話。用一兩句自然、像訊息的短句開場,不要提「系統」「排程」「AI」這些字,也不要複製你之前說過的話。如果氣氛合適,可以在句子後面加 [[meme:#編號]] 配一張圖(編號照 context 裡的圖庫清單),不適合就純文字。如果你判斷現在不適合打擾,只輸出 SKIP。'
|
|
5
5
|
|
|
6
6
|
export function createNudgeScheduler({ getConfig, store, logger, runTurn, sendProactive }) {
|
|
7
7
|
let timer = null
|