{"id":21684539,"url":"https://github.com/someaspy/aocr","last_synced_at":"2025-04-12T07:52:03.966Z","repository":{"id":204561852,"uuid":"712145345","full_name":"SomeAspy/AOCR","owner":"SomeAspy","description":"Enhance Discord's automod with image recognition - Works on emojis, reactions, stickers, and more!","archived":false,"fork":false,"pushed_at":"2024-09-01T03:45:50.000Z","size":20883,"stargazers_count":6,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T07:51:59.820Z","etag":null,"topics":["discord-bot","discord-js","ocr","tesseract","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SomeAspy.png","metadata":{"files":{"readme":".github/readme.md","changelog":null,"contributing":null,"funding":".github/funding.yml","license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"someaspy"}},"created_at":"2023-10-30T22:09:03.000Z","updated_at":"2024-10-28T07:17:54.000Z","dependencies_parsed_at":"2024-06-25T03:34:54.870Z","dependency_job_id":"c07ebc77-8757-4bb8-8ab8-b3123e165dd3","html_url":"https://github.com/SomeAspy/AOCR","commit_stats":null,"previous_names":["someaspy/aocr"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SomeAspy%2FAOCR","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SomeAspy%2FAOCR/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SomeAspy%2FAOCR/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SomeAspy%2FAOCR/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SomeAspy","download_url":"https://codeload.github.com/SomeAspy/AOCR/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248537033,"owners_count":21120690,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["discord-bot","discord-js","ocr","tesseract","typescript"],"created_at":"2024-11-25T16:15:59.997Z","updated_at":"2025-04-12T07:52:03.959Z","avatar_url":"https://github.com/SomeAspy.png","language":"TypeScript","funding_links":["https://github.com/sponsors/someaspy"],"categories":[],"sub_categories":[],"readme":"# AOCR\n\n\u003e Enhance Discord's automod with image recognition - Works on emojis, reactions, stickers, and more!\n\n![Video Demo](https://github.com/SomeAspy/AOCR/assets/33640860/4d8be2f5-ce98-4b92-bfe6-88424ab23c99)\n\n## Invite\n\n\u003chttps://discord.com/api/oauth2/authorize?client_id=1168700227201548409\u0026permissions=1099511639072\u0026scope=bot\u003e\n\n\u003e [!IMPORTANT]\n\u003e The production bot does not apply automod rules to admins/users with manage server, similar to standard automod\n\n## To Host Yourself\n\n1. Create a discord bot with the following permissions ([Detailed guide from Discord.JS](https://discordjs.guide/preparations/setting-up-a-bot-application.html)):\n    - ***ENABLE THE MESSAGE CONTENT INTENT***\n    - Send Messages (To send messages to the automod channel)\n    - Manage Messages (To delete offending messages)\n    - Manage Server (To view AutoMod rules)\n    - Read Messages/View Channels (To view messages and images contained within)\n    - Moderate Members (To apply moderation actions to members)\n2. Add the bot to your server\n3. Clone this repository (`git clone https://github.com/SomeAspy/AOCR`)\n4. Set configs in `config/config.json` (copy `config.example.json` and rename the copy to `config.json`)\n    - `DiscordToken`: This will be your bots Discord Token.\n    - `Workers`: The amount of workers the bot will have for OCR. Each worker takes about 100mb RAM. (Default: `5`)\n    - `ApplyToModerators`: Whether to apply AOCR detection to admins and members with manage server. (Default: `false`)\n    - `OnlyDelete`: This will only delete messages instead of applying all automod rules. (Default: `false`)\n    - `CheckEmojis`: Check emojis with OCR. This requires processing **EVERY** message with regex. (Default: `false`)\n    - `CheckReactions`: Check reactions with OCR. (Default: `true`)\n    - `CheckStickers`: Check stickers with OCR. (Default: `true`)\n5. Install packages using a node package manager (I suggest [PNPM](https://pnpm.io/)): `pnpm i`\n6. Build: `pnpm build`\n7. Run: `pnpm start`\n\n### Powered by [Tesseract.js](https://tesseract.projectnaptha.com/)\n\n#### Training data provided by \u003chttps://github.com/tesseract-ocr/tessdata_best/blob/main/eng.traineddata\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsomeaspy%2Faocr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsomeaspy%2Faocr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsomeaspy%2Faocr/lists"}