|
|
@ -57,7 +57,10 @@ func listenToStarboardReact(s *discordgo.Session, m *discordgo.MessageReactionAd
|
|
|
|
color = 0xFFFFFF
|
|
|
|
color = 0xFFFFFF
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
content := msg.Content[:1000]
|
|
|
|
content := msg.Content
|
|
|
|
|
|
|
|
if len(content) > 1000 {
|
|
|
|
|
|
|
|
content = content[:1000]
|
|
|
|
|
|
|
|
}
|
|
|
|
//Up to 10 line
|
|
|
|
//Up to 10 line
|
|
|
|
splittedContent := strings.SplitN(content, "\n", 11)
|
|
|
|
splittedContent := strings.SplitN(content, "\n", 11)
|
|
|
|
content = strings.Join(splittedContent[:10], "\n")
|
|
|
|
content = strings.Join(splittedContent[:10], "\n")
|
|
|
|