diff --git a/bot.go b/bot.go index 6dda40c..d7f92c2 100644 --- a/bot.go +++ b/bot.go @@ -199,7 +199,7 @@ func (bot *Bot) NotifyNewEvent(channels []string, newMaps []Event) (err error) { IconURL: fmt.Sprintf( "https://a.ppy.sh/%d?%d.png", beatmapSet.UserId, - time.Now().Unix, + time.Now().Unix(), ), } embed.Thumbnail = &discordgo.MessageEmbedThumbnail{ diff --git a/osuapi.go b/osuapi.go index d19ee20..6b3d34c 100644 --- a/osuapi.go +++ b/osuapi.go @@ -48,7 +48,11 @@ func (api *Osuapi) Token() (token string, err error) { api.clientSecret, ) - resp, err := http.Post("https://osu.ppy.sh/oauth/token", "application/x-www-form-urlencoded", strings.NewReader(data)) + resp, err := http.Post( + "https://osu.ppy.sh/oauth/token", + "application/x-www-form-urlencoded", + strings.NewReader(data), + ) if err != nil { return }