Skip to content

Commit

Permalink
Fixed issue where /story-time commands could fail due to responses ex…
Browse files Browse the repository at this point in the history
…ceeding message length limit
  • Loading branch information
Kardbord committed Nov 29, 2021
1 parent 8670638 commit c3b9d4c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
version: "3.9"
services:
kardbot:
image: tkvarfordt/kardbot:v1.8.1
container_name: kardbot-v1.8.1
image: tkvarfordt/kardbot:v1.8.2
container_name: kardbot-v1.8.2
volumes:
- ./config:/app/config
- ./assets/pasta:/app/assets/pasta
Expand Down
2 changes: 1 addition & 1 deletion kardbot/storytime.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func storyTime(s *discordgo.Session, i *discordgo.InteractionCreate) {
}

_, err = s.InteractionResponseEdit(s.State.User.ID, i.Interaction, &discordgo.WebhookEdit{
Content: textResps[0].GeneratedTexts[0],
Content: firstN(textResps[0].GeneratedTexts[0], int(MaxDiscordMsgLen)),
AllowedMentions: &discordgo.MessageAllowedMentions{
Parse: []discordgo.AllowedMentionType{
discordgo.AllowedMentionTypeUsers,
Expand Down

0 comments on commit c3b9d4c

Please sign in to comment.