Coder Social home page Coder Social logo

bluesky-food-safety-bot's Introduction

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
  1. Install dependencies:

npm install

  1. 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 file for details.

bluesky-food-safety-bot's People

Contributors

lovelaced avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.