Bot API and a no-code bot builder shaped by what gaming communities needed most

the start

Guilded was a fascinating place. The mission was to get communities off Discord by combining the best of TeamSpeak and Discord

the work

I built the in-server bot builder. Guilded believed in one-person team with a designer as the only exception

what came of it

Built the bot API that important bots like launched on

contributions

  1. Built the in-server Flow bot builder letting community admins create bots without leaving Guilded
  2. Owned the Flow bot builder from concept to launch - working directly with the lead designer
  3. Researched gaming communities to identify which tools they needed most for a no-code bot builder
4
major bots launched on the API
1
engineer on the bot builder, concept to launch

technical notes

7 questionsتحت الكبوت

What did you own at Guilded, and who did you work with?

The in-server bot builder (Flow bot) and other built-in bots, start to finish

Guilded liked one-person teams, so it was mine end to end, and the lead designer was my only partner on it

At Guilded, what happened to bot events when the API hiccupped or a bot went offline?

They didn’t get lost

We gave every event its own ID on our end, so bot developers never had to send one. If the API or the bot went down, events waited in a queue until it came back. When a bot reconnected it picked up from the last event it had seen, filtered down to the events it had asked for

With retries everywhere, how did Guilded’s bots avoid doing things twice?

Because every event had its own ID, we could spot a repeat and skip it, so a retry never sent a second welcome message or handed out the same role twice

How did Guilded’s automod beta moderate chat in real time without punishing people unfairly?

We built a beta advanced automod. It used curated lists for curse words, a simple model for NSFW content, and checks for spam and mass mentions, all running in a split second as the message was sent

If something tripped it, the message just got blocked. Mods could still mute someone or step in themselves. What it never did was hold anything against a person's profile. No account standing and no guessing their age

Sadly, it never made it past beta

How did the automod check every message in a split second on a single-threaded backend?

Most of the work was never heavy. The word lists lived in memory, so checking a message was a quick lookup with no trip to the database. Mass mentions were just a count, and spam was a counter per person over a short window. All of that takes microseconds, so one thread had plenty of room

On top of that, the backend ran as several processes, so the load was spread out anyway

What did Guilded’s bots get right that still holds up?

Two things Guilded shipped that I'd still build today

First, bots that come with the server. A welcome message or XP was a flow anyone could set up with no code and no hosting, instead of inviting a third-party bot someone else runs. Discord's safety team recently picked up on it with Osprey with events in and effects out

Second, events that wait for your bot. Discord only keeps a dropped session resumable for a few minutes, So a bot that's down longer misses whatever happened. Guilded queued events until the bot came back

What would you build differently at Guilded now?

Every event was checked against every flow in its server. That worked at our scale, but it became slower with each additional flow

Now, I’d index flows by the event type they listen for so a new message only wakes the flows that care about messages

I’d also shard evaluation for the APi by server or channel, so a busy server’s flow fanout does not contend with every other server’s workload

what they saidقالوا

  • “I came away really impressed with [Abdlmu'tii]. He delivers.”
    Eli Brown · Founder, Guilded
  • “I like it!!” (talking about my contributions to Ghostwriter)
    Amjad Masad · CEO, Replit