This commit is contained in:
Michael Zhang 2020-10-12 04:52:19 -05:00
parent 20a48b0420
commit 824c48334d
Signed by: michael
GPG key ID: BDA47A31A3C8EE6B
2 changed files with 6 additions and 2 deletions

2
bot.go
View file

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

View file

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