mirror of
https://github.com/tiennm99/tiennm99bot.git
synced 2026-10-15 10:15:50 +00:00
feat(modules): remove world cup module
The 2026 tournament has ended, so the schedule and daily digest commands have no upcoming matches to report. Drops the module, its catalog entry, command menu entries, and the WC_FOOTBALL_DATA_TOKEN env var. Stored subscriber and match-cache documents are left in place.
This commit is contained in:
1 parent
15c383d6f1
commit
6c934f6807
22 files changed
+2
-1692
No files matched your search
@@ -25,7 +25,6 @@ import (
|
||||
"github.com/tiennm99/miti99bot/internal/modules/stats"
|
||||
"github.com/tiennm99/miti99bot/internal/modules/stock"
|
||||
"github.com/tiennm99/miti99bot/internal/modules/util"
|
||||
"github.com/tiennm99/miti99bot/internal/modules/wc"
|
||||
"github.com/tiennm99/miti99bot/internal/modules/wordle"
|
||||
"github.com/tiennm99/miti99bot/internal/server"
|
||||
"github.com/tiennm99/miti99bot/internal/storage"
|
||||
@@ -62,7 +61,6 @@ func factories() map[string]modules.Factory {
|
||||
"wordle": wordle.New,
|
||||
"loldle": loldle.New,
|
||||
lol.CollectionName: lol.New,
|
||||
"wc": wc.New,
|
||||
"coin": coin.New,
|
||||
"gold": gold.New,
|
||||
"stock": stock.New,
|
||||
|
||||
@@ -50,19 +50,18 @@ func TestComposeDoesNotOverrideSourceCommit(t *testing.T) {
|
||||
|
||||
func TestFactoriesIncludesExpectedModules(t *testing.T) {
|
||||
catalog := factories()
|
||||
for _, name := range []string{"gold", "coin", "wc"} {
|
||||
for _, name := range []string{"gold", "coin"} {
|
||||
if catalog[name] == nil {
|
||||
t.Fatalf("factories missing %s", name)
|
||||
}
|
||||
}
|
||||
reg, err := modules.Build([]string{"gold", "coin", "wc"}, catalog, storage.NewMemoryProvider(), modules.BuildOptions{})
|
||||
reg, err := modules.Build([]string{"gold", "coin"}, catalog, storage.NewMemoryProvider(), modules.BuildOptions{})
|
||||
if err != nil {
|
||||
t.Fatalf("Build selected modules: %v", err)
|
||||
}
|
||||
for _, name := range []string{
|
||||
"gold_price", "gold_topup", "gold_buy", "gold_sell", "gold_portfolio",
|
||||
"coin_price", "coin_topup", "coin_buy", "coin_sell", "coin_portfolio",
|
||||
"wc", "wc_this_week", "wc_subscribe", "wc_unsubscribe",
|
||||
} {
|
||||
if _, ok := reg.AllCommands[name]; !ok {
|
||||
t.Fatalf("missing command %s", name)
|
||||
|
||||
Reference in new issue
Block a user