diff --git a/cmd/message_input.go b/cmd/message_input.go index 77f69db..1800216 100644 --- a/cmd/message_input.go +++ b/cmd/message_input.go @@ -95,11 +95,6 @@ func (mi *MessageInput) send() { if strings.HasPrefix(mi.GetTitle(), "[@]") { data.AllowedMentions.RepliedUser = option.True } - - go func() { - if _, err := discordState.SendMessageComplex(layout.guildsTree.selectedChannelID, data); err != nil { - } - }() } go func() { diff --git a/internal/logger/logger.go b/internal/logger/logger.go index 25937f3..562a221 100644 --- a/internal/logger/logger.go +++ b/internal/logger/logger.go @@ -26,7 +26,7 @@ func Load() error { } path = filepath.Join(path, "logs.txt") - file, err := os.OpenFile(path, os.O_CREATE|os.O_APPEND, os.ModePerm) + file, err := os.OpenFile(path, os.O_CREATE|os.O_WRONLY, os.ModePerm) if err != nil { return err }