woops
This commit is contained in:
parent
20a48b0420
commit
824c48334d
2 changed files with 6 additions and 2 deletions
2
bot.go
2
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{
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue