Beta server and role come from the dashboard
The owner sets them on the admin page; the bot polls the shared beta_settings row (30s) and moves the beta commands if the server changes. BETA_* env vars are gone. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
1 parent
a364435bab
commit
1ee6280d91
7 files changed
+157
-24
No files matched your search
@@ -1,12 +1,12 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"log"
|
||||
"os"
|
||||
"os/signal"
|
||||
"syscall"
|
||||
"velox-bot/internal/beta"
|
||||
"velox-bot/internal/bot"
|
||||
"velox-bot/internal/commands"
|
||||
cmdtickets "velox-bot/internal/commands/tickets"
|
||||
@@ -46,7 +46,6 @@ func main() {
|
||||
log.Fatalf("Error loading config: %v", err)
|
||||
return
|
||||
}
|
||||
beta.Configure(config.BetaGuildID, config.BetaRoleID)
|
||||
|
||||
db, err := db.NewDB(config)
|
||||
if err != nil {
|
||||
@@ -94,6 +93,9 @@ func main() {
|
||||
|
||||
defer bot.Close()
|
||||
|
||||
// Who the beta testers are is set on the dashboard; follow it.
|
||||
bot.WatchBeta(context.Background(), settingsRepo.GetBetaSettings)
|
||||
|
||||
fmt.Println("Bot is running...")
|
||||
|
||||
sc := make(chan os.Signal, 1)
|
||||
|
||||
Reference in new issue
Block a user