← All work

Project 01 / Active development

Espresso
Bot.

A calmer community.
A closer look at the code.

A Discord moderation and community bot with a companion dashboard. This project connects event-driven Python, persistent server settings, and a web interface for the people running a community.

Espresso Bot’s cream coffee cup logo
Good conversations. Better boundaries.
Application
Discord bot + dashboard
Backend
Python · discord.py · aiohttp
Storage
SQLite · aiosqlite
Frontend
HTML · CSS · JavaScript

01 / The problem

Community work
adds up quickly.

A Discord server needs clear rules, a thoughtful welcome, and tools staff can actually use.

Espresso brings message moderation, member screening, role menus, and staff workflows together. Each server has its own settings, while the bot and dashboard use the same validated configuration.

The current implementation also includes private reports and appeals, community tickets, scheduled posts, events, and opt-in community features.

02 / How it fits together

Two interfaces.
One set of rules.

The bot and website share a process, event loop, and settings store.

Input

Discord

Messages, commands
and member events

Behavior

Python

Rules, permissions
and moderation actions

Persistence

SQLite

Server settings,
warnings and history

aiohttp dashboardDiscord sign-in · server controls · staff tools

03 / An interactive walkthrough

A message arrives.
What happens next?

Choose an illustrative scenario to follow the moderation flow.

Example message

An unwanted invite

“Come join my server! discord.gg/example”

Delete + warning
  1. Check the contextModeration is enabled. The member has no exemption, and invite blocking is on.
  2. Match the ruleThe content filter recognizes a Discord invite and returns a moderation decision.
  3. Apply the outcomeAttempt deletion and record a warning if it is eligible. A first warning below the configured threshold does not trigger a timeout.
Example event

The same message is edited

A previously warned message is edited to contain another blocked phrase.

No duplicate warning
  1. Check the edited contentContent edits are filtered again; they do not count as new spam messages.
  2. Find the existing recordThe warning source identifies the original message. The database prevents a second warning for that source.
  3. Keep the outcome consistentAttempt to remove the violating edit without recording another warning for the same message.
Example member

A configured exempt role

The member has a role the server has excluded from automatic moderation.

Automatic filtering skipped
  1. Load the server settingsResolve the configured exempt roles for this server.
  2. Check the member’s rolesA matching role bypasses automatic message filtering.
  3. Leave the message aloneNo automatic deletion, warning, or timeout. Manual moderation still has its own permission checks.

Illustrative scenarios with assumed settings and successful Discord actions. This walkthrough does not connect to Discord or execute the bot.

04 / Engineering decisions

Small decisions.
Real consequences.

A few of the implementation choices that make the project worth exploring.

01

Keep detection testable

Core filtering rules operate without a Discord connection. That makes it possible to check text matching and spam windows in isolation.

Read the filtering code ↗
02

Protect newer settings

Dashboard saves include a version number. An outdated edit returns a conflict instead of silently replacing a more recent change.

Explore the implementation ↗
03

Handle repeated events

Warning records use a unique source, with persistent cooldowns for automatic warnings. Repeated events cannot endlessly add warnings.

Explore the implementation ↗
04

Choose a clear boundary

A shared SQLite store and serialized writes keep the current application straightforward. The deployment model is one process, rather than multiple independent writers.

Explore the repository ↗

05 / Verification & next steps

Show the evidence.
Know the limits.

257 tests passedAutomated Python suite · October 20, 2026

The suite exercises filtering, server isolation, persistent data, permission checks, conflicting saves, warning cooldowns, and failure handling. Discord calls are mocked.

This local run does not establish live Discord or OAuth behavior, production uptime, or the result of the separate browser regression suite.

Next milestone: document a repeatable end-to-end demonstration of one moderation workflow and its edge cases.

Setup and testing instructions ↗

Keep exploring

A little coffee.
A lot to build on.

Explore the public panel preview or get in touch about the project.

More about Harper

Programming, reverse engineering, and a growing interest in developer tools and automation.

Back to the portfolio →