Update releasenotes

This commit is contained in:
MSFTserver 2017-10-26 15:00:47 -07:00 committed by GitHub
parent 270f4d3243
commit 83e7690fe1

View file

@ -22,16 +22,24 @@ exports.releasenotes = {
// Start the request
request(options, function (error, response, body) {
message = JSON.parse(body).body
releasemessage = JSON.parse(body).body
releasename = JSON.parse(body).name
releasedate = JSON.parse(body).published_at
releaseurl = JSON.parse(body).html_url
msg.author.send({
"embed": {
"title": "*Download the app here!*",
"description": message,
"url": "https://github.com/lbryio/lbry-app/releases",
"title": "*Download " + releasename + " here!*",
"description": releasemessage,
"url": releaseurl,
"color": 7976557,
"timestamp": releasedate,
"author": {
"name": "Lbry-app Release Notes",
"icon_url": "https://i.imgur.com/yWf5USu.png"
"name": "Lbry-app Release Notes for " + releasename,
"icon_url": "http://www.pngall.com/wp-content/uploads/2016/04/Github-PNG-Image.png"
},
"footer": {
"icon_url": "https://i.imgur.com/yWf5USu.png",
"text": "Lbry-app Updated "
}
}
})