Skip to content

About

Production community and operations system for a 3k-member Geometry Dash community: requests, support, activity rewards, persistent workflows, diagnostics, and recovery.

Topics

Resources

Stars

4 stars

Watchers

0 watching

Forks

Latest commit

 

History

20 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Avenue Guard

Production community infrastructure for Geometry Dash Avenue, a Discord community with more than 3,000 members.

Avenue Guard runs the recurring work behind GD Avenue: level requests, recommendations, moderator outreach, activity rewards, applications, punishment appeals, creator feedback, tickets, forum organization, staff operations, recovery, and public service status.

Discord is still where most people meet the bot. It is no longer the whole system.

Members also use the GD Avenue website to follow recommended levels, apply for staff, appeal a punishment, request feedback, and check Avenue Guard's status. Staff use a private web portal for the work that becomes awkward inside a chain of Discord commands. Both surfaces lead back to the same permissions, rules, and durable records.

The difficult part is not sending a message. It is keeping the state behind that message correct when a deployment happens, two people act at once, Discord is temporarily unavailable, or a Geometry Dash data source gives a bad answer.

Avenue Guard is built around those problems.

Status Live and actively maintained
Community 3,000+ members
Main surfaces Discord, the GD Avenue website, and the Staff Portal
Persistent storage Turso / libSQL
Focus Reliable workflows, staff operations, and community tools

Why I built Avenue Guard

Running a community of this size creates a surprising amount of repeated work.

Level submissions have to be checked and reviewed. Recommended levels need to be followed after the initial decision. Members need a private way to contact staff. Tickets need histories. Applications and appeals need more structure than a Discord modal can comfortably provide. Staff need to know what is waiting, who owns it, and whether an action was actually delivered.

Avenue Guard began as a way to automate a few of those jobs.

Over time, it became part of GD Avenue's infrastructure. The main question changed from:

Can the bot perform this action?

to:

Can the whole workflow stay consistent when something fails halfway through?

That question now shapes most of the project.


What Avenue Guard runs

Avenue Guard is not just a moderation bot and it is not a pile of unrelated slash commands. It connects several parts of the community that would otherwise need separate tools or a large amount of manual work.

System What it handles
Level requests Request waves, scheduled openings, structured forms, validation, editing, review queues, outcomes, and repair
Recommendations and outreach Recommendation tiers, Creator Points evidence, priority ordering, staff claims, outreach cycles, attempts, follow-ups, and outcomes
Staff Portal Personal work, queue management, tasks, notes, QA, applications, staff access, operations, audit, and safe configuration
Applications Reviewer and moderator forms, drafts, work samples, assessments, interviews, decisions, probation, and role delivery
Punishment appeals Ban, timeout, mute, and restriction-role evidence; off-server access; staff review; private messages; and approved remedies
Level feedback Website requests, a private judge gallery, claim controls, responses, one-active-request limits, and cooldowns
Weekly rewards Activity tracking, anti-farming checks, streak history, private claims, and rewarded level requests
Help and tickets FAQ, reports, bot issues, transcripts, staff contact, ticket states, closure, and satisfaction feedback
Forum and moderation tools Sticky notices, forum reminders, required formats, narrow channel protections, restriction roles, and explanatory DMs
Operations Health checks, permission diagnostics, durable delivery, incidents, backups, recovery, retention, and release approval
Public website data Sanitized level progress, public team profiles, service availability, and approved release history
Telemetry Activity history, request statistics, support metrics, workflow events, impact reports, trends, and exports

The goal is not maximum automation. It is to automate the parts of community operations that are predictable enough to automate well, while keeping human judgment where context matters.


One system, several interfaces

The project now has three main entry points:

Members and staff
       |
       +---- Discord commands, buttons, modals, DMs, and threads
       |
       +---- Public website applications, appeals, feedback, and level pages
       |
       `---- Private Staff Portal
                    |
                    v
             Avenue Guard services
                    |
          workflows, permissions, outbox
                    |
                    v
              Turso / libSQL

The website is not a second bot and the Staff Portal is not a second source of truth. Browser requests pass through a small server-side bridge, and Avenue Guard checks the current Discord member and role state before allowing private work.

This matters because staff can move between Discord and the web without creating two versions of the same queue. A level claim, application decision, outreach attempt, or task is the same record whichever interface was used.


Level requests

One of Avenue Guard's largest systems manages Geometry Dash level submissions from the opening of a request window to the final reviewer decision.

Staff can open request waves:

  • for a fixed number of successful submissions;
  • for a set amount of time;
  • indefinitely;
  • or through a scheduled opening.

A slot is consumed only after the form is successfully submitted. Pressing the button and leaving the form does not waste one.

The system also handles:

  • one submission per member per wave;
  • duplicate level protection;
  • request-type rules, including demons, platformers, showcase requirements, and length filters;
  • a limited editing window with edit history;
  • first-request acknowledgements;
  • configurable result delivery by channel, DM, both, or neither;
  • queue age and review-time indicators;
  • wave summaries and rejection breakdowns;
  • and repair tools for missing cards, stale validation, or interrupted review updates.

Older request waves keep their original review behavior. Newer waves use the recommendation and outreach system described below. That boundary is saved with the wave itself, so a restart or repair cannot silently change the rules halfway through a live opening.

Geometry Dash validation

Before a request reaches staff, Avenue Guard checks the level against several Geometry Dash data sources.

It can verify that the level appears to exist, retrieve useful metadata, detect whether it is already rated, identify the uploader, and decide whether a showcase is required. Results are cached so a busy request wave does not repeatedly ask the same external service for the same level.

Those providers are treated as evidence, not as infallible authorities. A timeout, malformed response, provider disagreement, or hosting-network block is recorded as uncertainty rather than quietly turning into "level not found."

That distinction is important. External APIs fail in production, and a community workflow should not collapse because one of them had a bad afternoon.


Recommendations, priority, and outreach

A positive level review is no longer the end of the workflow.

For current waves, a reviewer recommends one of five outcomes:

  • Rate
  • Feature
  • Epic
  • Legendary
  • Mythic

That recommendation creates a durable queue entry for staff outreach. It does not claim that the level has already reached a Geometry Dash moderator.

Priority Point System

The Priority Point System gives the outreach team a consistent starting order. Its score uses three ideas:

  1. the reviewer's recommendation tier;
  2. the current Creator Points of the account that uploaded the level;
  3. how many completed outreach cycles the level has already waited through.

The purpose is practical. A level that has waited repeatedly should not disappear below newer entries forever, and a creator with little or no existing recognition can receive an opportunity boost. The score helps organize attention; it does not decide whether a moderator should rate a level.

Every component remains visible to authorized staff. If uploader identity or Creator Points cannot be verified, the total stays incomplete instead of pretending the creator has zero points.

Alongside that live queue, the Staff Portal has a Statistics Lab for measuring what happens after human outreach. It keeps versioned evidence about access, rating outcomes, and likely outreach capacity, with readiness checks, uncertainty ranges, calibration history, and separate network eras when the real outreach environment changes. These models do not reorder the live queue or contact anyone. They are there to show staff how much the available evidence can actually support.

Creator Points resolution

Creator Points turned out to be a small data problem of their own.

Avenue Guard resolves the actual uploader account, then compares evidence from several providers. It keeps zero separate from unknown, rejects identity mismatches, records where an accepted value came from, and retries unresolved cases on a bounded schedule.

Staff can apply a manual value when the automatic evidence is incomplete, but that override is explicit and audited. It is not hidden inside the score.

Outreach work

Staff can claim queue entries, record attempts, confirm that a level actually reached a moderator, add a follow-up, or requeue an eligible level. Private targets and notes remain private.

Outreach is grouped into episodes and cycles so the history remains understandable. A follow-up to the same contact is not counted as a brand-new submission, and a completed cycle only increases waiting credit for levels that were genuinely eligible and did not reach a moderator.

Once a submission is confirmed, Avenue Guard follows the level through a fixed outcome window and records whether it became rated. It never contacts moderators automatically.

Public level pages

Recommended levels have a public, privacy-filtered presence on the GD Avenue website. Members can search by level name, ID, or creator and see a readable progress timeline.

The public view intentionally leaves out exact rank, exact priority components, Creator Points, requester and reviewer identities, private targets, notes, QA, and internal outreach evidence. Public rank is shown only as a broad band such as Top, High, Standard, or Lower.


Staff Portal

Some work is simply easier on the web than inside Discord.

The Staff Portal is a role-aware workspace for the operational side of Avenue Guard. It uses Discord sign-in, then asks the bot to resolve the member's current server roles and capabilities. Removing a role removes effective access on the next request.

The portal is organized around four areas:

  • Overview for personal work and attention items;
  • Work for claims, the queue, outreach, tasks, and notes;
  • Team for shared progress, statistics, review QA, applications, and staff profiles;
  • Admin for requests, PPS, community systems, operations, audit, system diagnostics, and safe configuration.

Reviewers see the tools needed for their own work. Head Reviewers can coordinate the team and review Reviewer applications. Admins can manage broader community systems and Mod applications. Owner and Dev roles add tightly scoped recovery and diagnostic controls.

The portal also supports:

  • personal, assigned, team, and system-generated tasks;
  • private, team, and record-linked notes;
  • queue reassignment and stale-claim recovery;
  • review QA and calibration;
  • application messaging and interview tickets;
  • reversible Dev-only hiding for broken queue records;
  • permission-aware search;
  • and a read-only role preview so Devs can inspect another role's experience without gaining that role's mutation permissions.

The browser never receives database credentials or the private service key. It also cannot reach Turso directly.


Applications

Reviewer and Mod applications now use the GD Avenue website rather than a sequence of short Discord prompts.

Forms are defined by Avenue Guard, so staff can change the questions and available application types without rebuilding the public page. Drafts autosave, applicants can return later, and the submitted snapshot is preserved even if the form changes afterward.

Reviewer applications include a level from a weighted review pool. The assigned level is saved with the draft, which means refreshing the page cannot reroll it until the applicant gets one they prefer.

Once submitted, Avenue Guard creates or reuses a staff review discussion and includes the full answer snapshot. Staff can add notes, record structured assessments, ask for clarification, start a private interview ticket, accept with or without an interview, reject, or place the application on hold.

The decision is saved before Avenue Guard attempts the resulting DM or role change. If Discord is temporarily unavailable, delivery can retry without making a second decision or creating a second interview.

Most applications can still use independent assessment. Admins, Owners, and Devs can make the final decision themselves when another assessment is unnecessary.

Cooldowns belong to an application type rather than blocking every type at once. Reviewer and Mod applications can also be opened or closed independently.


Punishment appeals

Punishment appeals are separate from staff hiring even though they share the same public application area.

They remain available to people outside the server. When someone starts an appeal, Avenue Guard tries to prepare the form with the current punishment it can observe:

  • an active server ban;
  • a timeout or mute;
  • a configured restriction role;
  • or an existing stored punishment record.

The snapshot can include the original reason, source, date, duration, and available Discord audit evidence. If some of that information is missing or the punishment came from a system Avenue Guard cannot read directly, the appellant can supply the missing context manually without overwriting observed evidence.

The form asks for a clear chronology, the disputed part of the decision, relevant evidence, and the requested outcome. Staff can then triage the case, record assessments, request more information through the private portal message thread, and decide whether the punishment is upheld, reduced, removed, corrected, or returned for reconsideration.

Admins, Owners, and Devs can make the final appeal decision without waiting for a second assessment. Less privileged reviewers still follow the independent-review rule.

Authorized staff can queue an approved unban from the web. Like other important Discord actions, that work goes through durable delivery rather than assuming the first network attempt succeeded.


Level feedback

Members can request focused feedback on one of their levels from the website after signing in with Discord.

They choose a level, a project stage, and the area where they need help. Avenue Guard validates the level and posts the request into a private judge gallery. A judge can claim it, review the level, and send a practical response back through Avenue Guard.

Members can have only one active feedback request at a time. After a judge sends the response, a 48-hour cooldown begins.

The active-request limit is also protected by a database constraint, while the cooldown is calculated from the saved response time. Neither rule depends on a disabled browser button.

This keeps the queue useful while still giving creators a straightforward way to ask for help outside a public chat.


Staff profiles and the public team

Staff can manage their public About-page card from the portal.

Each person can add a short quote and decide whether their card is visible. Display name, role, and profile picture still come from the current Discord identity, so the website does not maintain a second stale copy of the team.

Only the approved public fields reach the website. Portal nicknames, permissions, activity statistics, notes, and internal staff records remain private.


Weekly activity rewards

Avenue Guard runs a separate system for rewarding sustained community participation.

The activity pipeline roughly follows three stages:

  1. configured roles and channels are excluded;
  2. obvious activity-farming patterns are filtered;
  3. eligible activity is saved into weekly history.

The result is not a raw message leaderboard. The bot keeps longitudinal activity, recognizes repeated high-performing weeks, and can pause automatic rewards without losing the week's data.

Qualifying members receive a private level-request opportunity with a limited claim window. Once claimed, that level joins the same broader review infrastructure used by normal requests, while remaining separate from public request-wave capacity.


Help, reports, and tickets

Avenue Guard also acts as the private entry point for member support.

Its DM interface lets members browse the FAQ, check request or weekly status, report another member, report a bot issue, request an eligible transcript, contact staff, or open a routed ticket. Older DM-based appeal records remain readable, while new punishment appeals use the more complete website workflow.

When private staff assistance is needed, Avenue Guard creates a dedicated ticket with an explicit state:

Waiting for staff
        |
        v
Waiting for user
        |
        v
Resolved

The bot keeps the opening message in sync with conversation activity, notices stale tickets without overwriting newer replies, saves a chronological transcript before closure, and can ask the member for satisfaction feedback afterward.

Reports, bot issues, transcript decisions, staff replies, and failed deliveries remain traceable instead of disappearing into a temporary channel.


Forum organization and moderation guardrails

Large Discord servers accumulate repetitive organizational work. Avenue Guard handles the parts where the correct action is clear.

Selected channels can keep a recurring notice at the bottom of the conversation. Forum areas can receive a first-message guide, use tag-specific instructions, or require a word or format marker in the title or opening post.

When a configured forum rule is missed, the bot can notify the author privately, remove the invalid thread, and leave a staff log explaining what happened.

The same narrow approach is used for moderation guardrails. Avenue Guard can protect specific channels from unauthorized messages or reactions, apply a configured restriction role, and DM the member with an explanation.

These are deliberately limited automations. Avenue Guard does not try to decide ambiguous moderation cases.


Reliability and persistence

This is the part of Avenue Guard that grew most as the project moved from a bot with features to a production system.

Durable state

Production data lives in Turso/libSQL, with a local embedded replica for normal access and remote storage as the durable source.

That state includes request waves, reviews, priority evidence, outreach, applications, punishment appeals, feedback requests, staff work, weekly activity, tickets, transcripts, scheduled openings, validation cache, release history, uptime, incidents, backup records, and impact snapshots.

Production refuses to silently fall back to disposable local storage when Turso is expected but unavailable. A deployment should fail visibly rather than start successfully and forget its state on the next restart.

Protected changes

Several workflows contain moments where simultaneous actions matter:

  • two members should not consume the same final request slot;
  • one member should not create two active feedback requests from separate tabs;
  • two reviewers should not both finalize the same request or appeal;
  • and an application should not create duplicate threads, tickets, DMs, or role grants when delivery is retried.

These rules are protected by database constraints, conditional updates, transactions, and idempotency keys. They are not left to whichever button happened to respond first.

Durable Discord delivery

Important Discord side effects go through an outbox.

The workflow result and the intent to send a message, edit a card, grant a role, create a thread, or DM a user are stored first. A separate worker then performs the Discord action and retries temporary failures.

This means the database can say "the application was accepted, role delivery is pending" instead of losing the decision or pretending the role was granted when Discord never received it.

Persistent components

Buttons and menus often remain visible longer than the process that created them. Avenue Guard registers persistent Discord components again at startup, so old request cards, ticket controls, application actions, feedback buttons, and release approvals continue to route to the correct workflow after a restart.

Exact Discord identities

Discord IDs are larger than JavaScript can safely represent as normal numbers. Avenue Guard keeps them as exact strings across the web boundary and as exact integers inside Python and SQLite.

The storage layer also includes a bounded repair for older records written through a driver that rounded large IDs. Only one-to-one matches are repaired, and every attempted repair is recorded.

External-service resilience

Geometry Dash providers, Discord, and remote storage are all dependencies Avenue Guard does not control.

The project uses cached evidence, bounded retries, provider cooldowns, circuit breakers, worker timeouts, dead-letter records, and repair paths so one bad dependency does not freeze unrelated parts of the bot.

The aim is not to claim that failure cannot happen. It is to make failure visible, contained, and recoverable.


Operations and recovery

Production systems eventually need to answer two questions:

What is wrong?

and

How do we recover?

Avenue Guard includes tooling for both.

The Discord admin dashboard and web operations views cover request state, workers, storage, provider health, delivery queues, incidents, permission drift, configuration versions, and recovery controls.

Bot Doctor performs a deeper pass over required channels, role hierarchy, ticket access, persistent request controls, logs, and other workflow dependencies. Configuration checks catch missing IDs, invalid templates, unsupported options, and broken response rules before those mistakes become member-facing errors.

Critical background jobs are supervised independently. Unexpected failures can be restarted without pretending that intentionally disabled jobs are unhealthy.

Each long-running workflow receives a correlation ID. Errors with the same fingerprint are grouped into an incident with a count and timeline rather than producing an unreadable stream of duplicate alerts.

The recovery toolbox also includes:

  • request-card and summary repair;
  • stale-claim release;
  • dead delivery inspection and retry;
  • database and storage checks;
  • zipped backups;
  • non-destructive restore drills;
  • allowlisted retention controls;
  • post-deployment smoke checks;
  • and monthly impact reports.

Public status and releases

Avenue Guard powers its own status page on the GD Avenue website.

The public view separates three things that are often incorrectly treated as one:

  • whether the web service process is alive;
  • whether the Discord gateway is currently usable;
  • and measured availability accumulated over time.

It also shows bounded latency and system availability for the services members actually depend on. Public data is sanitized; internal errors, database details, private Discord state, and staff-only provider evidence are never included.

Release notes follow a similar boundary. A deployment or command can prepare a release, but it stays private until the configured owner approves it through a persistent Discord panel. Only approved versions and notes appear on the website.

This keeps the public page useful without turning internal diagnostics into public data.


Auditability and privacy

Important actions leave enough history to reconstruct what happened later.

That includes request edits, review outcomes, priority changes, claims, outreach, application assessments, appeal decisions, staff messages, role delivery, ticket transcripts, forum removals, backups, releases, and recovery actions.

At the same time, not every stored field belongs on the public website.

The public APIs use allowlists rather than returning a large internal object and hoping the browser hides the sensitive parts. Public level pages, team profiles, status, and release history each receive only the fields they need.

Private targets, exact priority evidence, user-submitted appeal material, staff notes, raw incidents, internal IDs, and application records stay behind the role-aware service boundary.


Telemetry and impact reporting

Avenue Guard records enough operational history to show how the system is being used, not just whether the process is online.

The latest documented production snapshot, generated on September 6, 2026, included:

Metric Value
Community members 3,155
Unique members touched by tracked workflows 813
Tracked interaction events 8,294
Tracked messages 7,112
Reactions recorded 871
Slash commands recorded 108
Voice activity recorded 2,000 minutes
Members with tracked weekly activity 416
Weekly activity history 10 weeks
Recorded database backups 114
30-day command error rate 0.0%

8,294 tracked interaction events does not mean 8,294 slash commands. It covers activity observed across the workflows and telemetry systems Avenue Guard tracks.

Impact reports can be exported as Markdown, summary CSV, daily trend CSV, breakdown CSV, and raw JSON. That makes the same evidence useful for spreadsheets, charts, longitudinal comparisons, and community planning.


Smaller systems that still matter

Not every useful feature needs a full section.

Avenue Guard also includes configurable auto-responses, rotating server art, background summaries, watched-role DMs, approved public team cards, smaller community commands, and a few playful features chosen partly through community polls.

Those features are not the main engineering challenge, but they matter for another reason: Avenue Guard should be dependable infrastructure without feeling disconnected from the community it serves.


Project structure

Avenue Guard is a modular application rather than one command file.

Area Responsibility
Cogs Discord events, commands, persistent views, and member-facing entry points
Services Requests, priority, Creator Points, appeals, Staff Portal, backups, impact, and other workflow logic
Utilities Database access, configuration, Discord delivery, checks, transcripts, supervision, and shared contracts
Database Durable workflow state, evidence, histories, migrations, and operational records
Website bridge Discord OAuth, private API proxying, CSRF protection, and public sanitized endpoints
Tests and diagnostics Regression coverage, deployment checks, recovery verification, and operator documentation

The README stays at the system level on purpose. The detailed operational contracts live in:


Scope and non-goals

Avenue Guard is intentionally opinionated.

It is built for one community

Many workflows reflect how Geometry Dash Avenue actually operates. It is not trying to be a universal Discord framework.

It does not automate human judgment

Validation, scoring, routing, and guardrails reduce repetitive work. Reviewers and moderators still make decisions where context matters.

It does not automatically contact Geometry Dash moderators

The outreach system organizes human work and records what happened. Private contact and submission decisions remain with authorized staff.

It treats external data as evidence

Provider agreement can increase confidence, but one unavailable or contradictory service is not allowed to invent a fact.

It is not designed around public self-hosting

The production application is operated for GD Avenue. Public documentation explains the engineering and observable behavior without publishing secrets, private configuration, moderation data, or abuse-sensitive implementation details.


What changed as Avenue Guard grew

The biggest change was not the number of features. It was what I considered the unit of the system.

At first, I thought mostly in Discord interactions: someone presses a button, the bot performs an action, and a response appears.

That model stopped being enough once workflows began lasting longer than one interaction or one process.

A request wave can remain open across deployments. A ticket can wait hours for the next person to act. An applicant can save a draft on the website and return later. An appeal can need another piece of evidence. A recommended level can remain in outreach for several cycles. An old button still has to work after a restart.

I started treating those workflows as persistent state with rules that must remain true, rather than as sequences of messages.

For example:

  • a request slot should only be consumed by a completed submission;
  • unknown Creator Points should never be treated as zero;
  • one person should not be able to create two active feedback requests;
  • two reviewers should not finalize the same case independently;
  • a saved decision should survive a failed Discord delivery;
  • and a public API should never rely on the browser to hide private fields.

That shift led to durable storage, protected state transitions, persistent components, an outbox, versioned interfaces, recovery tools, and the Staff Portal.

It also changed the way I think about errors.

The question is no longer only:

How do I catch this exception?

It is:

What state is left behind, can the user safely retry, and can staff understand what happened later?

That is probably the most important thing Avenue Guard changed about the way I build software.


About the source code

The complete production source and configuration remain private.

Avenue Guard is tightly coupled to a live community, including its staff workflows, moderation rules, operational assumptions, recovery controls, and abuse-sensitive behavior. This README is therefore written as an engineering case study rather than as a self-hosting guide.

It documents the problems the system solves, the main workflows, its reliability model, real production evidence, and the decisions that shaped it without exposing credentials or private community data.


Current status

Live and actively maintained.

Avenue Guard continues to change alongside Geometry Dash Avenue. New work is driven by member usage, staff needs, production failures, and the patterns visible in its own telemetry.

About

Production community and operations system for a 3k-member Geometry Dash community: requests, support, activity rewards, persistent workflows, diagnostics, and recovery.

Topics

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors