Spartan-Laboratories / GKB2

GKB continuation
0 stars 0 forks source link

Bot Companion cleanup #4

Open SpaSinghOut opened 1 year ago

SpaSinghOut commented 1 year ago

The Bot class Companion object can be cleaned up in multiple ways. First the legacy method of creating commands is no longer necessary except for the creation of commandData for interactions. Commands can create/forget themselves without being stored just to create commandData. The way that the Bot Companion fires new slashCommands has been updated to the new system but other types of commands are still handled via the legacy method. Those can be removed and the slashCommand implementation can be generalized.

SpaSinghOut commented 1 year ago

The legacy method of creating commands has been completely removed and replaced by the new system. On initialization the bot will get the list of Command beans and initialize those marked as active(default). Command data is still created every time. The firing of all interactions and legacy message command has been updated to the new system.

The Bot Companion Object has been completely cleaned up. The Bot class has some UI related clutter.

SpaSinghOut commented 1 year ago

Only Timekeeping/"Central Method" clutter remains