Here's a glimpse of the bot in action:
To get started with the RSS Feishu Bot, follow these simple steps:
-
Deploy the Bot:
- Deploy the bot to an online service such as Render or use
ngrokfor a reverse proxy setup. - Ensure your deployment is accessible via a domain or subdomain.
- Deploy the bot to an online service such as Render or use
-
Create Your Feishu Bot:
- Within your Feishu developer console, add a
Botfeature to your app. - Grant the bot the necessary permissions:
im:messageim:chatbitable:app
- Configure the request URLs for both
Event ConfigurationandCallback Configuration:- Event URL:
https://<your_domain>/feishu/event - Callback URL:
https://<your_domain>/feishu/callback
- Event URL:
- Within your Feishu developer console, add a
-
Set Up the Database:
- Create a copy of the provided Bitable to use as your bot's database.
- Send the link of your bitable to the bot and grant access.
-
Create a Card Template:
- Utilize Feishu's CardKit to create a card template by importing the
asset/card_template.card.
- Utilize Feishu's CardKit to create a card template by importing the
-
Configure Environment Variables:
- In
config/app.go, set the environment variables to match your service configuration.
- In
Interact with the RSS Feishu Bot using the following commands within Feishu:
/list [-g | --group]: List all subscribed feeds./add [-g | --group] <url>: Add a new subscription./remove [-g | --group] <url>: Remove a subscription./send [-g | --group]: Send the latest RSS updates./help: Display this help message.
To automatically push updates, set up a cron job to periodically request https://<your_domain>/rss/send. You can use Feishu's official BotBuilder to create and manage your cron jobs.
