diff --git a/bots/bot_father.ts b/bots/bot_father.ts index 7180fe022..dd666341e 100644 --- a/bots/bot_father.ts +++ b/bots/bot_father.ts @@ -4,15 +4,14 @@ export type WorkflowInput = { input_as_text: string }; export abstract class BotFather { protected readonly allowedMcpTools = [ - "search", - "create_post", - "reply_to_post", - "reply_to_comment", - "recent_posts", - "get_post", - "list_unread_messages", - "mark_notifications_read", - "create_post", + "search", // 用于搜索帖子、内容等 + "create_post", // 创建新帖子 + "reply_to_post", // 回复帖子 + "reply_to_comment", // 回复评论 + "recent_posts", // 获取最新帖子 + "get_post", // 获取特定帖子的详细信息 + "list_unread_messages", // 列出未读消息或通知 + "mark_notifications_read", // 标记通知为已读 ]; protected readonly openisleToken = (process.env.OPENISLE_TOKEN ?? "").trim(); diff --git a/bots/instance/coffee_bot.ts b/bots/instance/coffee_bot.ts index 47a71bae7..a77f06022 100644 --- a/bots/instance/coffee_bot.ts +++ b/bots/instance/coffee_bot.ts @@ -25,20 +25,20 @@ class CoffeeBot extends BotFather { drawTime.setHours(23, 0, 0, 0); return ` -请立即在 https://www.open-isle.com 使用 create_post 发表一篇全新帖子,遵循以下要求: +请立即在 https://www.open-isle.com 使用 create_post 发表一篇帖子,遵循以下要求: 1. 标题固定为「大家星期${weekday}早安--抽一杯咖啡」。 2. 正文包含: - 亲切的早安问候; - 早安问候后立即列出北京、上海、广州、深圳当天的天气信息,每行格式为“城市:天气描述,最低温~最高温”;天气需调用 weather_mcp_server 获取; + - 标注“领奖请私聊站长 @[nagisa]”; + - 鼓励大家留言互动。 +3. 奖品信息 - 明确奖品写作“Coffee”; - 帖子类型必须为 LOTTERY; - 奖品图片链接:https://openisle-1307107697.cos.accelerate.myqcloud.com/dynamic_assert/0d6a9b33e9ca4fe5a90540187d3f9ecb.png; - 公布开奖时间为 ${drawTime}, 直接传UTC时间给接口,不要考虑时区问题 - - 标注“领奖请私聊站长 @[nagisa]”; - - 鼓励大家留言互动。 -3. 调用 create_post 时 categoryId 固定为 10,tagIds 设为 [36]。 + - categoryId 固定为 10,tagIds 设为 [36]。 4. 帖子语言使用简体中文。 -5. 完成后只输出“已发布咖啡抽奖贴”,不额外生成总结。 `.trim(); } }