Skip to content

Releases

C3P0 1.5.0

Choose a tag to compare

@cm208 cm208 released this 29 Sep 00:28

Added

  • Music idle timeout. C3P0 now leaves the voice channel after 5 minutes with nothing playing: after the last song ends, after !stop, or after joining with nothing queued. A paused song doesn't count as idle. Change the timeout (0-120 minutes, or 0 to stay until told to leave) under Idle_timeout in the Music page's Configuration form. Leaving is recorded in the SYSLOG feed.

Fixed

  • The dashboard logged you out every few minutes. Every 5 minutes it re-checks your server permissions with Discord, and each open page sent several of those checks at once. Discord rate-limited the extras, and the dashboard treated the rate limit as a revoked login. Now only one check runs per login at a time. A login only ends if Discord actually rejects it; if Discord is busy or unreachable, the dashboard keeps your current permissions and tries again 30 seconds later.
  • Logging out while one of those checks was in progress could cause a server error.

Upgrading

  • Database migration 0007 runs automatically on startup and sets every server's idle timeout to 5 minutes. No new environment variables.

C3P0 1.4.0

Choose a tag to compare

@cm208 cm208 released this 25 Sep 00:25

The dashboard is now a working amber-phosphor terminal.

The Server page: live stat tiles, the channel tree, and the SYSLOG feed

Dashboard

  • Command line on every page. Navigate (general, music, mod, cd <page>, F1–F7, F9 guilds, F10 logout), control music (play <song>, skip, pause, resume, prev, stop, vol 60), remove things (rm !rules, rm #channel). Type help for the list; up/down recalls history. Every command uses the same routes as the page's own forms.
  • (y/N) confirmations for destructive actions, in the command line instead of a browser dialog.
  • Live SYSLOG of member joins and leaves, custom command uses, moderation actions and music.
  • Message editor: a formatting toolbar and live Discord-style preview for welcome messages, DMs, embeds, custom command responses and reaction-role messages.
  • Guild picker with member and online counts, plus servers you manage that don't have C3P0 yet, with an invite link.
  • Server page with member, online, channel and uptime tiles over the channel tree.
  • Music gains an oscilloscope and spectrum, previous (restart) and stop, and a live queue.
  • Display preferences: phosphor amber|sodium|green and crt off|normal|max. Effects default to off if your system prefers reduced motion.

Bot

  • Custom commands now count their uses.
  • New message variables {count} (short for {member_count}) and {uptime}.

Upgrading

Pull ghcr.io/cm208/c3p0:1.4.0 (or :latest) and restart both containers. Database migration 0006 runs automatically when the bot starts; there are no new environment variables.

Full details in CHANGELOG.md.

C3P0 1.3.1

Choose a tag to compare

@cm208 cm208 released this 24 Sep 23:12

Fixed

  • The bot crashed on startup in any freshly built image. SQLAlchemy 2.1 stopped installing greenlet, which the async database engine needs, and the old SQLAlchemy>=2.0,<3.0 range let new builds pick up 2.1. The dependency is now SQLAlchemy[asyncio]>=2.0,<2.1.

If you run the published image, pull ghcr.io/cm208/c3p0:1.3.1 (or :latest). If you build from source, rebuild.

C3P0 1.3.0

Choose a tag to compare

@cm208 cm208 released this 19 Sep 19:49

First public release of C3P0, a self-hosted Discord bot and web dashboard. It runs on your own hardware with Docker Compose and SQLite.

Run it

git clone https://github.com/cm208/c3p0.git && cd c3p0
cp .env.example .env    # add your bot token, application ID, and an INTERNAL_API_TOKEN
docker compose pull
docker compose up -d c3p0

The container image is ghcr.io/cm208/c3p0:1.3.0 (also tagged 1.3, 1, and latest) for linux/amd64 and linux/arm64, so a Raspberry Pi works.

Step-by-step guides: the README quickstart, Discord setup, and deployment.

What's in it

  • Bot: welcome messages, reaction/button/select-menu roles, moderation with persistent infractions and auto-escalation, template-only custom commands, and music from YouTube or Spotify links (no Spotify credentials needed) with the requester shown in !play and !queue.
  • Dashboard: Discord OAuth2 login limited to servers where you hold Manage Server, a settings page for every feature, and live music controls.
  • Server management: create, edit, delete, and drag-and-drop reorder roles and channels, per-role channel permissions, layout templates with preview, and an audit log.
  • Infraction management: a searchable, sortable, paginated log with per-infraction edit and removal.

Versioning follows Semantic Versioning from this release on. See the changelog for details.