Skip to content

Build against the current discord-framework - #11

Merged
Aerhhh merged 2 commits into
masterfrom
fix/framework-config-type
Oct 11, 2026
Merged

Aerhhh merged 2 commits into
masterfrom
fix/framework-config-type

Conversation

@Aerhhh

@Aerhhh Aerhhh commented Oct 11, 2026

Copy link
Copy Markdown
Contributor

TicketBot has stopped compiling against NerdBot's discord-framework since the July framework changes. This brings it up to date. It builds and passes against the current JitPack framework snapshot (master-5582a8dce8-1).

Changes

  • Config type: NerdBotConfig moved into the NerdBot app. TicketBot's features now take the framework's DiscordBotConfig.
  • Scheduling: SchedulableFeature now schedules features itself. The ticket features use their own default timings instead of passing null and falling back to hard-coded ones.
  • Feature loading: the framework loads the features listed in the config (createConfiguredFeatures), and keeps the features list on DiscordBotConfig.
    • TicketBot's own copy of the loader goes.
    • Its features field goes too, and it has to: Gson refuses a subclass field with the same name as one in the parent.

Before deploying

The config's features entries keep the same shape. Feature class names must still start with net.hypixel.nerdbot., which the ticket features already do.

TicketBot stopped compiling when the framework moved NerdBotConfig into
the NerdBot app and changed SchedulableFeature to take the base
DiscordBotConfig and run executeTask() itself. The features now take
DiscordBotConfig, and feature loading schedules them the same way
NerdBot does, with their own default timings instead of passing null
and falling back to hard-coded ones.
discord-framework now loads the features listed in the config itself
(createConfiguredFeatures) and keeps the features list in
DiscordBotConfig. TicketBot's own copy of the loader and of the field
go, and the field has to: Gson refuses a subclass field with the same
name as one in its parent.
@Aerhhh
Aerhhh merged commit 03b0fa4 into master Oct 11, 2026
2 checks passed
@Aerhhh
Aerhhh deleted the fix/framework-config-type branch October 11, 2026 21:47
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