03 / ٠٣

Mesho bot

An AI Reddit bot that fights off the flood of spam posts like "HELP ME NOW PLEASE" and points people to abjad.wiki pages, with a human in the loop

role
Built it, end to end
stack
TypeScriptRedis
year
2026

mesho bot 01 / ٠١

the flood الزحمة

r/EgyptianFreelancers (another site) and r/Egypt_Developers (another site) got the same rule-breaking posts every day. “Hire me” posts, vague titles, requests to DM, off-topic questions

Moderators were answering the same thing, by hand, again and again, and lack of moderation ALMOST became a problem

I gave a bot mod privileges. Then I realized that was probably a terrible idea

Reddit posts from r/EgyptianFreelancers pouring down at angles, HIRE ME, dm me, HELP ME NOW PLEASE, piled so high that only Mesho's head pokes out

02 03

mesho bot 02 / ٠٢

the judgement التحكيم

So I gave it rules to follow, all regex and do-this-if-that, quickly realizing the amount of false positives. It definitely wasn't any better than reviewing it manually either

Then I created a Devvit bot, connected it to an AI model, and started it in dry-run mode with the subreddit rules being pulled through the API

Except, AI has this funny habit of being horribly, and I mean horribly, wrong

So it got another AI opinion. Two models judge every removal, image posts get read with OCR first, and Mesho only removes a post when both models clear 70% confidence. When they disagree, or things get ambiguous, it hands the decision back to a human moderator

A post, looking for work, dm me, checked by two models. One gauge passes 70% at 91%, the other stops at 64%, so it goes to u/Ana_Gebna, a mod, with approve and remove keysA post, looking for work, dm me, checked by two models. One gauge passes 70% at 91%, the other stops at 64%, so it goes to u/Ana_Gebna, a mod, with approve and remove keys

04 05

mesho bot 03 / ٠٣

a human in the loop إنسان في النص

I also had to think about the less exciting stuff

Prompt injection, rate limits, duplicate events, and making sure one bad decision doesn't spiral into a bigger problem like platform spam

So we brought in more moderators. to correct its calls, teach it and leave it notes

That's my idea of AI as a tool that creates opportunities. Mesho made room for more mods, and took the manual boring part of the job off their hands. Unlike people say about AI stealing your job

It can also catch AI slop. Images go through checks which looks for Content Credentials and a SynthID watermark, Thanks fo Gemmini for giving us access!

Mesho with comments from the mods u/abdlmutii and u/Ana_Gebna around him, correcting and confirming his callsMesho with comments from the mods u/abdlmutii and u/Ana_Gebna around him, correcting and confirming his calls

06 07

mesho bot 04 / ٠٤

the machinery الآلة

For the rest of us nerds, this was the job

1- Grab rules as they update automatically, and store them next to the notes from mods

2- Since Devvit executions are stateless, Mesho uses Redis to persist and batch incoming posts across executions, keeping the submission flow under one second from the moment a user says "Aaand post!"

3- We need to filter out posts that aren't worth using our AI on, so a quick 2ms pre-filter checks for common bad words, bad links, excessive emoji use and other signs of spam

4- In case the post has an image, a vision model copies the text out of it and scores how readable it is, since Tesseract only managed around 45% on memes we started using our own Vision Model

5- If a post is deemed worth reviewing, Mesho runs it through two AI models, dubbed the "Council", to get a confidence and a decision. Each reply has to come back in a fixed shape, with a reason from the subreddit's own list, or a mod gets the post instead

6- In case a verdict is worth filing to a moderator, it pings any online moderator, and it can be validated and reinforced with a single click

I believe a moderation bot shouldn't know what to remove but know when to leave something alone

Six keycaps, one for each of Mesho's jobs, a clipboard for the rules and mod notes, a stack for the queue, a filter, an eye for reading pictures, a blue key with a gavel for the council, and a bell for pinging a modSix keycaps, one for each of Mesho's jobs, a clipboard for the rules and mod notes, a stack for the queue, a filter, an eye for reading pictures, a blue key with a gavel for the council, and a bell for pinging a mod

08 09

mesho bot 05 / ٠٥

what came of it النتيجة

It moderates r/EgyptianFreelancers and r/Egypt_Developers and r/EgyptCareers, with more of our communities next in line

Its first smoke test was a small one, seven posts. It settled six by itself and sent the seventh, the one mods could argue about

70% confidence to act2 models per removal0 bans on its own6 of 7 posts settled in the first smoke test

10 11

technical notes

4 questionsتحت الكبوت

How do you know Mesho is getting it right?

We ran it in dry run first. It made every call and logged it but didn’t touch anything, so the mods could see where it agreed with them and where it didn’t. After that, the mods fed it a lot of corrections, and we tuned its rules with what we know about our own audience. I keep every decision with its confidence and reason, and I watch how often mods undo it for each rule. I also have sets of real posts with known answers that I can run it against offline

If posts spike 10×, what keeps Mesho, and the moderators, from falling over?

Mods only ever see the posts it’s unsure about, so a spike mostly lands on the bot. Each review is split into small steps that save as they go, so nothing has to finish in one shot. Requests are paced per minute, and if the model’s busy, the step just gets rescheduled. After five tries it gives up and hands the post to a mod. Worst case, the queue gets longer. It won’t start removing things it isn’t sure about

How does Mesho read Arabic in screenshots?

Tesseract came first. It got 83 to 92% on clean screenshots and around 45% on memes, and come on, memes are the backbone of the internet. So now a vision model reads each image, told only to copy the text and never to judge it

It also scores how readable each image is. If it can barely read it, a mod gets it

What stops a post from talking Mesho’s model out of its rules?

Following the model's response, Mesho verifies the outcome by requiring that the response is adapting to a specific format and that the reason provided come from the subreddit's own set of rules

Mesho does nothing if anything is not validated, and a moderator receives the post. A second AI model examines the output of the first model if a prompt injection SOMEHOW passes through it. The text of the post is never inserted into the system prompt