Project Bot Current rewrite

Modereta

A bot that watches the drops so you do not have to keep staring at the chat.

Modereta is a private bot that integrates with Sofi on Discord: it remembers favourites, understands which cards have appeared and notifies those who are interested. No general spam or clandestine spreadsheets.

Type
Discord bot
Status
Current rewrite
Base
Discord · TypeScript
Platforms
Private use

A list, a drop, a notice

Automation happens in the middle.

People only choose their favourites. Modereta reads Sofi's messages, normalises the names, cross-references the data and sends the alert when needed. The invisible work is the whole point.

  1. 01

    Save what you are looking for

    Each person can maintain a list of favourite series and characters through commands with autocomplete.

  2. 02

    Modereta watches Sofi

    A passive rule detects the drops of another bot, interprets the cards, and saves series, characters, and context.

  3. 03

    Alert when there is a match

    If anything saved as a favourite shows up, it groups the matches and mentions only the interested people.

The rewrite

The same name. A base that is no longer scary to touch.

The current Modereta is not a patch over the old one. It reorganises the project around independent commands, rules, services and data so new utilities can be added without starting the same fire again.

01 / DISCORD

Modular commands

Slash commands and context menus are loaded, validated and synchronised with Discord from a common manager.

  • Rules for messages: Behaviours that react to other bots live separately from commands. This lets Modereta listen without turning the main file into a mess.

02 / BACKEND

Data with memory

PostgreSQL and Drizzle store drops, series, characters and favourites with reproducible migrations and typed queries.

  • Ready to deploy: Docker Compose brings together the bot and database; continuous integration checks formatting, linting, types and tests before accepting anything.
Modereta cover with a marbled X, cards, favourites and neon notifications

It doesn't only work on my laptop

Develop, verify, deploy.

The new foundation includes containers for the bot and PostgreSQL, data migrations, command synchronisation and a suite of automated checks. Because “it runs on my machine” is information, not a production strategy.

Bun and strict TypeScript discord.js for commands and events PostgreSQL with Drizzle ORM Docker Compose and migrations Tests with bun:test CI with GitHub Actions

Contact

Shall we talk about your next project?

Got an idea, a website in need of a renovation or a computer that only works when the technician turns up? Tell me about it. I will explain clearly what can be done, whether it makes sense and what the next step would be.

Right now

Available for selected projects, collaborations and technical enquiries.

Usual response time
1–2 working days
Location
Salvaterra de Miño, Galicia