diff --git a/dice/config.go b/dice/config.go index a10a3591..e2768fb0 100644 --- a/dice/config.go +++ b/dice/config.go @@ -1003,6 +1003,9 @@ func setupBaseTextTemplate(d *Dice) { "鸽子理由": guguReason, }, "其它": { + "抽牌_牌堆列表": { + {"载入并开启的牌堆:\n{$t牌堆列表}", 1}, + }, "抽牌_列表": { {"{$t原始列表}", 1}, }, @@ -1724,6 +1727,9 @@ func setupBaseTextTemplate(d *Dice) { }, }, "其它": { + "抽牌_牌堆列表": { + SubType: ".draw list", + }, "抽牌_列表": { SubType: ".draw keys", }, diff --git a/dice/ext_deck.go b/dice/ext_deck.go index 413491ec..b894d61a 100644 --- a/dice/ext_deck.go +++ b/dice/ext_deck.go @@ -626,7 +626,7 @@ func RegisterBuiltinExtDeck(d *Dice) { } if strings.EqualFold(deckName, "list") { //nolint:nestif - text := "载入并开启的牌堆:\n" + text := "" for _, i := range ctx.Dice.DeckList { if i.Enable { author := fmt.Sprintf(" 作者:%s", i.Author) @@ -640,7 +640,8 @@ func RegisterBuiltinExtDeck(d *Dice) { text += fmt.Sprintf("- %s 格式: %s%s%s 牌组数量: %d\n", i.Name, i.Format, author, version, count) } } - ReplyToSender(ctx, msg, text) + VarSetValueStr(ctx, "$t牌堆列表", text) + ReplyToSender(ctx, msg, DiceFormatTmpl(ctx, "其它:抽牌_牌堆列表")) } else if strings.EqualFold(deckName, "desc") { // 查看详情 text := cmdArgs.GetArgN(2)