Beta servers: testers can use beta features in servers whose owner opted in

- beta.Configure takes the opted-in servers; testers are looked up in the beta server
- beta commands registered per opted-in server and removed when it opts out
- beta.ServerEnabled for behaviour that no person triggers
- docs updated

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
FernandoJVideiraandClaude Sonnet 5.5 committed 2026-10-23 01:25:50 +01:00
1 parent e2fe30b524
commit fcf4f3ccbd
12 files changed
+491 -122

No files matched your search

+8 -1
View File
@@ -94,7 +94,14 @@ func main() {
defer bot.Close()
// Who the beta testers are is set on the dashboard; follow it.
bot.WatchBeta(context.Background(), settingsRepo.GetBetaSettings)
bot.WatchBeta(context.Background(), func(ctx context.Context) (string, string, []string, error) {
guildID, roleID, err := settingsRepo.GetBetaSettings(ctx)
if err != nil {
return "", "", nil, err
}
servers, err := settingsRepo.ListBetaGuilds(ctx)
return guildID, roleID, servers, err
})
fmt.Println("Bot is running...")