Skip to content

ignis05/OCR-Bot

Repository files navigation

OCR-Bot

Discord.js bot that can be set to transcribe message attachments from specific discord channels using tesseract.js.

Usage:

  • To transcribe a single message select Apps > OCR from message's context menu.
  • To enable automatic transcription in a channel make sure the bot can view channel, send messages and read message history (that one is required to be able to link the original message when responing).
    Then bot owner or someone with manage channel permission can use /toggle-ocr to toggle automatic transcribing.
  • You can use /ocr-status to check if automatic ocr is enabled in current channel

How to host your own copy:

  1. Make sure you have nodejs version ^16.6.1 installed.

  2. Create discord bot in developer panel and copy its token.

  3. Download this repository and install dependencies with npm i

  4. Launch bot with node bot.js to generate data/token.json - paste your bot token there.

  5. Use npm run get-invite to generate invite link and use it to add the bot to your server.

  6. Use npm run register to register slash commands - it can take up to an hour before discord finishes processing them.

  7. Start bot with node bot.js

  • or alternatively if you have pm2 installed: npm run start

About

Discord.js bot with OCR capabilities.

Topics

Resources

License

Stars

Watchers

Forks