fix: do not send message twice

This commit is contained in:
ayn2op 2024-12-11 23:05:27 -05:00
parent a5c5540147
commit 0d886c34c2
2 changed files with 1 additions and 6 deletions

View file

@ -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() {

View file

@ -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
}