Skip to content

Commit

Permalink
Merge pull request #4 from michaelpeterswa/rework
Browse files Browse the repository at this point in the history
fix: array length error
  • Loading branch information
michaelpeterswa authored Feb 28, 2023
2 parents 24ddd7a + ea7e63c commit 3cc4b9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions send.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ func (s *Sender) Send(text string, messageConfig *MessageConfig) error {
texts := splitText(text, messageConfig.Prefix, messageConfig.MaxMessageLength)

reversedTexts := make([]string, len(texts))
for _, n := range texts {
reversedTexts = append([]string{n}, reversedTexts...)
for i, n := range texts {
reversedTexts[len(texts)-1-i] = n
}

for _, message := range reversedTexts {
Expand Down

0 comments on commit 3cc4b9e

Please sign in to comment.