An open API service indexing awesome lists of open source software.

https://github.com/sleeplessone1917/lemmy-ocr-bot

A bot for lemmy, the fediverse link aggregator, that converts images with text into text.
https://github.com/sleeplessone1917/lemmy-ocr-bot

bot fediverse fediverse-bot lemmy lemmy-bot ocr

Last synced: about 1 month ago
JSON representation

A bot for lemmy, the fediverse link aggregator, that converts images with text into text.

Awesome Lists containing this project

README

        

# lemmy-ocr-bot

A bot for [lemmy](https://github.com/LemmyNet/lemmy), the fediverse link aggregator, that converts images with text into text.

# Setup

Install the bot's dependencies with the javascript package manager of your choice.

Create a file called `.env` in the same directory as `bot.ts`. There are 4 environment variables that need to be set:

- `INSTANCE`: The lemmy instance the bot's account belongs to
- `USERNAME_OR_EMAIL`: The username or email of the bot
- `PASSWORD`: The password for the bot's account.
- `OCR_API_KEY`: The API key used for the OCR API. [Create an API key here if you do not already have one.](https://ocr.space/OCRAPI)

When the bot is setup, it can be started by running `npm start`.

# Usage

To use the bot, mention the bot in a reply to a post or comment. It will scan any images for text and respond to you with the text. Alternatively, if you create a post or comment that includes both a mention to the OCR bot and images, the OCR bot will respond with the scans.