Skip to content

Commit

Permalink
Fix release url
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas Breuer committed Jan 24, 2017
1 parent 2602586 commit 5de0c25
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugins/changelog.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"git.lukas.moe/sn0w/Karen/helpers"
"git.lukas.moe/sn0w/Karen/logger"
"strings"
"git.lukas.moe/sn0w/Karen/version"
)

type Changelog struct {
Expand All @@ -26,11 +27,10 @@ func (c *Changelog) Init(session *discordgo.Session) {

defer helpers.Recover()

json := helpers.GetJSON("https://git.lukas.moe/api/v3/projects/77/repository/tags?private_token=9qvdMtLdxoC5amAmajN_")
releases, err := json.Children()
helpers.Relax(err)
release := helpers.GetJSON(
"https://git.lukas.moe/api/v3/projects/77/repository/tags/" + version.BOT_VERSION + "?private_token=9qvdMtLdxoC5amAmajN_",
)

release := releases[0]
c.log = map[string]string{
"number": release.Path("name").Data().(string),
"date": release.Path("commit.committed_date").Data().(string),
Expand Down

0 comments on commit 5de0c25

Please sign in to comment.