Skip to content

Develop 5.0.0 - #37

Merged
eggy03 merged 17 commits into
mainfrom
develop-5.0.0-new-schema
Oct 3, 2026
Merged

eggy03 merged 17 commits into
mainfrom
develop-5.0.0-new-schema

Conversation

@eggy03

@eggy03 eggy03 commented Oct 3, 2026

Copy link
Copy Markdown
Owner

Description

This PR adopts to the new schema used by the bot's API. The commands have undergone an overhaul and more customization options have been added. Customization options from the lite edition of the bot have also been added.


Changes

Commands

Audit Log and Message Log commands have been brought under the same roof.

  • auditlog set,
  • auditlog view,
  • auditlog remove,
  • messagelog set,
  • messagelog view and
  • messagelog remove

have been replaced by

  • config save [guild_event_channel][member_event_channel][message_event_channel] ,
  • config view and
  • config update [guild_event_channel][member_event_channel][message_event_channel] respectively.

Starting v5, the bot categorizes events into 3 types:

  • Guild Events,
  • Member Events and
  • Message Events

The new config commands allows you to assign a separate logging channel to each event category, giving you greater control over what your bot logs and where those events are sent.

Saving and Updating a Configuration

Use config save when creating a new configuration and config update when modifying an existing configuration.

For example, if you only want Message Events to be logged, you can use:
config save [ ][ ][message_event_channel]

or, if a configuration already exists:
config update [ ][ ][message_event_channel]

Leaving a channel unspecified automatically disables logging for that event category.

Important: config update replaces the entire existing configuration with the configuration provided in the command.

For example, if your current configuration has Member Events and Message Events enabled and you want to additionally enable Guild Events, you must provide all three channels when using config update. If you omit the existing channels, those channels will be cleared and logging for those event categories will be disabled.

Viewing a configuration

Use config view to view existing configuration for your guild.

Removing an existing configuration entirely

Use config update with no channels to remove your existing configuration.

Migration

If you are migrating from v2, 3 or 4, your existing guild data will be automatically migrated to the newer schema. Your existing server configuration will be migrated to work with the new schema.

Existing guild configurations will be mapped based on the following rules:

  1. If a guild had a channel registered for Audit Log events, that channel will be assigned to both guild_event_channel and member_event_channel. If the guild also had a channel registered for Message Log events, that channel will be assigned to message_event_channel.
  2. If a guild was registered only for Audit Log events, message_event_channel will remain empty. The bot will therefore not log messages or other message-related events for that guild.
  3. If a guild was registered only for Message Log events, guild_event_channel and member_event_channel will remain empty. The bot will therefore not log guild- or member-related events for that guild.
  4. If a guild was not registered for any logging before this update, its configuration will remain unchanged. You will need to use config save to create a new configuration.

You can use config view to verify whether your existing configuration matches with the new one.

setup has been renamed to help

More Customizations

Starting v5, you can allow for more customizations via environmental variables:

  • APP_NAME - changes the app name used internally (defaults to PaperTrailBot)

  • APP_ACTIVITY - changes the activity showed in discord (defaults to /help | latest version)

  • EMBED_SUCCESS_COLOR_INT - changes the color of the embeds which log creation type events (for e.g., Role Create, Sticker Create) (defaults to GREEN (712458))

  • EMBED_WARNING_COLOR_INT - changes the color of the embeds which log update type events (for e.g., Role Update, Sticker Update) (defaults to YELLOW (16776960))

  • EMBED_DESTRUCTIVE_COLOR_INT - changes the color of the embeds which log deletion type events (for e.g., Role Delete, Sticker Delete) (defaults to RED (16711680))

Other Changes

Manual Sharding has been removed. This also means the bot is not capable of scaling horizontally anymore. I didn't want to bear the additional configuration burden associated with it.


Tasks for Native Builds

  • New Code Added
    • New Code Tested In Native Build
  • Dependencies Updated
    • Dependencies Updates Tested In Native Build
  • Reachability Metadata Updated
    • Update Tested In Native Build

eggy03 added 15 commits October 2, 2026 20:17
- this disables the bot's ability to scale horizontally

Signed-off-by: Egg-03 <111327101+eggy03@users.noreply.github.com>
- brand-new command system
- ive been working tirelessly for 10hours..i cant do it anymore

Signed-off-by: Egg-03 <111327101+eggy03@users.noreply.github.com>
Signed-off-by: Egg-03 <111327101+eggy03@users.noreply.github.com>
Signed-off-by: Egg-03 <111327101+eggy03@users.noreply.github.com>
…t to a new package

Signed-off-by: Egg-03 <111327101+eggy03@users.noreply.github.com>
Signed-off-by: Egg-03 <111327101+eggy03@users.noreply.github.com>
Signed-off-by: Egg-03 <111327101+eggy03@users.noreply.github.com>
Signed-off-by: Egg-03 <111327101+eggy03@users.noreply.github.com>
Signed-off-by: Egg-03 <111327101+eggy03@users.noreply.github.com>
Signed-off-by: Egg-03 <111327101+eggy03@users.noreply.github.com>
Signed-off-by: Egg-03 <111327101+eggy03@users.noreply.github.com>
Signed-off-by: Egg-03 <111327101+eggy03@users.noreply.github.com>
Signed-off-by: Egg-03 <111327101+eggy03@users.noreply.github.com>
Signed-off-by: Egg-03 <111327101+eggy03@users.noreply.github.com>
Signed-off-by: Egg-03 <111327101+eggy03@users.noreply.github.com>
Signed-off-by: Egg-03 <111327101+eggy03@users.noreply.github.com>
Signed-off-by: Egg-03 <111327101+eggy03@users.noreply.github.com>
@eggy03
eggy03 force-pushed the develop-5.0.0-new-schema branch from 6d5ce35 to b84f03f Compare October 3, 2026 09:55
@eggy03
eggy03 merged commit 4c02667 into main Oct 3, 2026
8 checks passed
@eggy03
eggy03 deleted the develop-5.0.0-new-schema branch October 3, 2026 10:14

This branch was previously deployed

1 inactive deployment
bot-service — b84f03fa Deployed Oct 3, 2026 by northflank-cloud-build-run[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant