Skip to content

Commit

Permalink
plugins: (doses-logger) Less verbose create dose file output
Browse files Browse the repository at this point in the history
  • Loading branch information
5HT2 committed Jan 31, 2024
1 parent f819b7f commit 6a95475
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/doses-logger/doses-logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func DoseCommand(c bot.Command) error {
file = fmt.Sprintf("http://localhost:6010/public/media/doses-%v.json", c.E.Author.ID)

// TODO: Use http stdlib
if res, err := httpBashRequests.Run(fmt.Sprintf("curl -i -s -X POST -H \"Auth: %s\" %s -F \"content=[]\"", p.Config.(config).FohToken, file)); err != nil {
if res, err := httpBashRequests.Run(fmt.Sprintf("curl -X POST -H \"Auth: %s\" %s -F \"content=[]\"", p.Config.(config).FohToken, file)); err != nil {
return err
} else if _, err := cmd.SendEmbed(c.E, "", fmt.Sprintf("```\n%s\n```", util.TailLinesLimit(string(res), 2040)), bot.DefaultColor); err != nil {
return err
Expand Down

0 comments on commit 6a95475

Please sign in to comment.