Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lovelaced/bluesky-food-safety-bot
a bot which posts UK food safety alerts to bluesky
https://github.com/lovelaced/bluesky-food-safety-bot
Last synced: 6 days ago
JSON representation
a bot which posts UK food safety alerts to bluesky
- Host: GitHub
- URL: https://github.com/lovelaced/bluesky-food-safety-bot
- Owner: lovelaced
- Created: 2023-04-15T20:31:09.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-04-15T20:51:05.000Z (over 1 year ago)
- Last Synced: 2024-12-06T21:27:26.520Z (25 days ago)
- Language: TypeScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-atproto - Bot that posts food safety notices from the UK Food Standards Agency to your Bluesky feed
README
# Bluesky Food Safety Notices Bot
A Bluesky bot that posts food safety notices from the UK Food Standards Agency to your Bluesky feed. This bot checks for new alerts every hour and posts them with a 30-minute delay between each post. It also includes a debug mode that prints the most recent five food alerts to the console without posting them to Bluesky.
## Prerequisites
- Node.js (version >= 14)
- A Bluesky account for the bot## Installation
1. Clone the repository:
```
git clone https://github.com/your-username/bluesky-food-safety-bot.git
cd bluesky-food-safety-bot
```2. Install dependencies:
`npm install`
3. Create a `.env` file with the following variables:
```
[email protected]
BLUESKY_BOT_PASSWORD=your_bluesky_bot_password
DEBUG_MODE=false
```Replace `[email protected]` and `your_bluesky_bot_password` with the email and password of your Bluesky bot account. Set `DEBUG_MODE` to `true` if you want to enable the debug mode.
## Usage
To run the bot, execute the following command:
`npm start`
This will start the bot, and it will begin checking for new food safety notices every hour and posting them to your Bluesky feed.
## Debug Mode
To enable the debug mode, set the `DEBUG_MODE` environment variable to `true` in your `.env` file. In debug mode, the bot will print the most recent five food alerts to the console instead of posting them to Bluesky.
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.