Skip to content

Commit 2a9ca03

Browse files
committed
Improve button name
1 parent 74bfa99 commit 2a9ca03

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

pkg/discord/bot.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,7 +1102,7 @@ func (b *Bot) createButtons(dialog []model2.Dialog, state *PreviewState) ([]disc
11021102
if state.Settings.BoomerModeOpts.Layout == "" {
11031103
if state.Settings.BoomerModeOpts.NumGifs > 0 {
11041104
captionButtons = append(captionButtons, discordgo.Button{
1105-
Label: fmt.Sprintf("Remove Gif (%d)", lessValue),
1105+
Label: fmt.Sprintf("Remove Random (%d)", lessValue),
11061106
Emoji: &discordgo.ComponentEmoji{
11071107
Name: "➖",
11081108
},
@@ -1112,7 +1112,7 @@ func (b *Bot) createButtons(dialog []model2.Dialog, state *PreviewState) ([]disc
11121112
})
11131113
}
11141114
captionButtons = append(captionButtons, discordgo.Button{
1115-
Label: fmt.Sprintf("Add Gif (%d)", moreValue),
1115+
Label: fmt.Sprintf("Add Random (%d)", moreValue),
11161116
Emoji: &discordgo.ComponentEmoji{
11171117
Name: "➕",
11181118
},
@@ -1122,7 +1122,7 @@ func (b *Bot) createButtons(dialog []model2.Dialog, state *PreviewState) ([]disc
11221122
})
11231123
}
11241124
captionButtons = append(captionButtons, discordgo.Button{
1125-
Label: "Place Gifs",
1125+
Label: "Configure Layout",
11261126
Emoji: &discordgo.ComponentEmoji{
11271127
Name: "🔧",
11281128
},

pkg/render/exec.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ func (o overlayConfig) resolveOverlays(overlayCache *mediacache.OverlayCache, lo
239239
}
240240

241241
if overlayCache.Exists(parts[1]) {
242-
out = append(out, overlay{name: parts[1], x: int(x), y: int(y), scale: scale})
242+
out = append(out, overlay{name: parts[1], x: int(x), y: int(y), scale: min(scale, 5)})
243243
} else {
244244
logger.Error("image does not exist", slog.String("line", line))
245245
}

0 commit comments

Comments
 (0)