Skip to content

CalebYcj/new-project-codex-memory

Repository files navigation

Feishu Bot Listener

Minimal local AI listener for the configured lark-cli bot.

The listener subscribes to Feishu IM events, sends text messages to the OpenAI Responses API, then replies in Feishu.

The vote sync script keeps the Bitable voting table and candidate table in sync, so vote counts update automatically after a form submission lands.

Configure

Create .env:

OPENAI_API_KEY=sk-your-key-here
OPENAI_MODEL=gpt-5
BOT_SYSTEM_PROMPT=你是一个在飞书里和用户对话的 AI 助手。回答要简洁、有帮助,默认使用中文。

Run

npm run bot

When the bot receives an im.message.receive_v1 event, it replies with an AI answer.

For the Feishu vote sync loop:

npm run vote-sync

Current voting entry is limited to 4.13-4.17,每人5个, and the main overview view is 4.13-4.17 产品清单.

Environment

OPENAI_MODEL=gpt-5 npm run bot

Stop it with Ctrl+C.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors