mirror of
https://github.com/LBRYFoundation/lbry-wunderbot.git
synced 2025-09-13 13:59:45 +00:00
Update releasenotes
This commit is contained in:
parent
270f4d3243
commit
83e7690fe1
1 changed files with 14 additions and 6 deletions
|
@ -22,16 +22,24 @@ exports.releasenotes = {
|
||||||
|
|
||||||
// Start the request
|
// Start the request
|
||||||
request(options, function (error, response, body) {
|
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({
|
msg.author.send({
|
||||||
"embed": {
|
"embed": {
|
||||||
"title": "*Download the app here!*",
|
"title": "*Download " + releasename + " here!*",
|
||||||
"description": message,
|
"description": releasemessage,
|
||||||
"url": "https://github.com/lbryio/lbry-app/releases",
|
"url": releaseurl,
|
||||||
"color": 7976557,
|
"color": 7976557,
|
||||||
|
"timestamp": releasedate,
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Lbry-app Release Notes",
|
"name": "Lbry-app Release Notes for " + releasename,
|
||||||
"icon_url": "https://i.imgur.com/yWf5USu.png"
|
"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 "
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Reference in a new issue