apod.lua: now uses HD links

This commit is contained in:
topkecleon 2016-01-14 15:49:37 -05:00
parent 4f78323db7
commit e04abca769
2 changed files with 3 additions and 3 deletions

View File

@ -94,7 +94,7 @@ Where the key is the preconfigured response (where #NAME will be replaced with t
##Setup ##Setup
You **must** have Lua (5.2+), LuaSocket, and LuaSec installed. For uploading photos and other files, you must have curl installed. The fortune.lua plugin requires that fortune is installed. You **must** have Lua (5.2+), LuaSocket, and LuaSec installed. For uploading photos and other files, you must have curl installed. The fortune.lua plugin requires that fortune is installed.
For weather.lua, lastfm.lua, and bible.lua to work, you must have API keys for [OpenWeatherMap](http://openweathermap.org), [last.fm](http://last.fm), and [Biblia.com](http://biblia.com), respectively. cats.lua uses an API key (via [The Cat API](http://thecatapi.com)) to get more results, though it is not required. apod.lua uses an API key (via [NASA API](https://api.nasa.gov/)) to have more queries per minute, but it can be used with a demo API key (DEMO_KEY). For weather.lua, lastfm.lua, and bible.lua to work, you must have API keys for [OpenWeatherMap](http://openweathermap.org), [last.fm](http://last.fm), and [Biblia.com](http://biblia.com), respectively. cats.lua uses an API key (via [The Cat API](http://thecatapi.com)) to get more results, though it is not required. apod.lua uses an API key (via [NASA API](https://api.nasa.gov/)) to have more queries per minute, though it is not required.
**Before you do anything, open config.lua in a text editor and make the following changes:** **Before you do anything, open config.lua in a text editor and make the following changes:**
@ -146,5 +146,5 @@ otouto uses dkjson, a pure-Lua JSON parser. This is provided with the code and d
##Contributors ##Contributors
The creator and maintainer of otouto is [topkecleon](http://github.com/topkecleon). He can be contacted via [Telegram](http://telegram.me/topkecleon), [Twitter](http://twitter.com/topkecleon), or [email](mailto:topkecleon@outlook.com). The creator and maintainer of otouto is [topkecleon](http://github.com/topkecleon). He can be contacted via [Telegram](http://telegram.me/topkecleon), [Twitter](http://twitter.com/topkecleon), or [email](mailto:topkecleon@outlook.com).
Other developers who have contributed to otouto are [Juan Potato](http://github.com/JuanPotato), [Tiago Danin](http://github.com/TiagoDanin), [Ender](http://github.com/luksireiku), [Iman Daneshi](http://github.com/Imandaneshi) and [HeitorPB](https://github.com/heitorPB). Other developers who have contributed to otouto are [Juan Potato](http://github.com/JuanPotato), [Tiago Danin](http://github.com/TiagoDanin), [Ender](http://github.com/luksireiku), [Iman Daneshi](http://github.com/Imandaneshi), and [HeitorPB](https://github.com/heitorPB).

View File

@ -46,7 +46,7 @@ local action = function(msg)
--local weburl = 'http://apod.nasa.gov/apod/ap' .. date_url .. '.html' --local weburl = 'http://apod.nasa.gov/apod/ap' .. date_url .. '.html'
--output = date .. '[' .. jdat.title .. '](' .. weburl .. ')\n' --output = date .. '[' .. jdat.title .. '](' .. weburl .. ')\n'
output = date .. '[' .. jdat.title .. '](' .. jdat.url .. ')\n' output = date .. '[' .. jdat.title .. '](' .. jdat.hdurl .. ')\n'
if jdat.copyright then if jdat.copyright then
output = output .. 'Copyright: ' .. jdat.copyright output = output .. 'Copyright: ' .. jdat.copyright