- Introduced `bot_id` column in `system_automations` table (migration 6.0.0.sql) and updated the Diesel schema/model to include it. - Adjusted migrations to remove the hard‑coded “Update Summary” automation and only create an index on the `name` column. - Extended the `SET_SCHEDULE` keyword: - Added a second string argument for the script name. - Passed the invoking user's `bot_id` to the database layer. - Updated function signature to accept a full `UserSession` instead of discarding it. - Modified `execute_set_schedule` to store `bot_id`, script name, and activation flag; added conflict handling on `(bot_id, param)` to update schedule and reset trigger state. - Updated imports and logging to reflect new parameters. These changes enable per‑bot automation management, allow specifying the script to run, and improve idempotent schedule updates.
13 lines
No EOL
377 B
QBasic
13 lines
No EOL
377 B
QBasic
SET_SCHEDULE "* * * * *"
|
|
|
|
|
|
let text = GET "announcements.gbkb/news/news.pdf"
|
|
let resume = LLM "Resume this document, in a table (DO NOT THINK) no_think: " + text
|
|
|
|
SET_BOT_MEMORY "resume", resume
|
|
|
|
let text1 = GET "announcements.gbkb/auxiliom/auxiliom.pdf"
|
|
SET_BOT_MEMORY "auxiliom", text1
|
|
|
|
let text2 = GET "announcements.gbkb/toolbix/toolbix.pdf"
|
|
SET_BOT_MEMORY "toolbix", text2 |