Skip to content
SomeAspyPublic

About

Enhance Discord's automod with image recognition - Works on emojis, reactions, stickers, and more!

Topics

Resources

Stars

9 stars

Watchers

1 watching

Forks

Repository files navigation

AOCR

Enhance Discord's automod with image recognition - Works on emojis, reactions, stickers, and more!

Video Demo

Invite

https://discord.com/api/oauth2/authorize?client_id=1168700227201548409&permissions=1099511639072&scope=bot

Important

The production bot does not apply automod rules to admins/users with manage server, similar to standard automod

To Host Yourself

  1. Create a discord bot with the following permissions (Detailed guide from Discord.JS):
    • ENABLE THE MESSAGE CONTENT INTENT
    • Send Messages (To send messages to the automod channel)
    • Manage Messages (To delete offending messages)
    • Manage Server (To view AutoMod rules)
    • Read Messages/View Channels (To view messages and images contained within)
    • Moderate Members (To apply moderation actions to members)
  2. Add the bot to your server
  3. Clone this repository (git clone https://github.com/SomeAspy/AOCR)
  4. Set configs in .env (copy .env.example and rename the copy to .env)
    • DISCORD_TOKEN: This will be your bots Discord Token.
    • WORKERS: The amount of workers the bot will have for OCR. Each worker takes about 100mb RAM. (Default: 5)
    • APPLY_TO_MODERATORS: Whether to apply AOCR detection to admins and members with manage server. (Default: false)
    • ONLY_DELETE: This will only delete messages instead of applying all automod rules. (Default: false)
    • CHECK_EMOJIS: Check emojis with OCR. This requires processing EVERY message with regex. (Default: false)
    • CHECK_REACTIONS: Check reactions with OCR. (Default: true)
    • CHECK_STICKERS: Check stickers with OCR. (Default: true)
  5. Install packages using a node package manager (I suggest PNPM): pnpm i
  6. Build: pnpm build
  7. Run: pnpm start

Powered by Tesseract.js

About

Enhance Discord's automod with image recognition - Works on emojis, reactions, stickers, and more!

Topics

Resources

Stars

9 stars

Watchers

1 watching

Forks

Sponsor this project

Used by

Contributors

Languages