Commit Graph

20 Commits

Author SHA1 Message Date
Frank Becker 69a7aae939 apod - fix broken image metadata and error response / logging on room avatar event errors
There was a parameter off by one error. Propably introduced with the
room_send wrapper.

While testing the avatar feature I noticed that nothing happens if the bot is not at least a moderator in
the room. So I decided to send that info to the room and log the error
message as a warning.

The explanation was not altered by the apod module.
Turns out it was broken that day at the api level. See https://api.nasa.gov/planetary/apod?api_key=DEMO_KEY&hd=true&date=2022-09-13

fixes #216
2022-09-15 21:38:08 +02:00
Andrea Spacca cd6a86dfb9 this fixed it 2022-08-15 12:45:40 +09:00
gammafn 0f3957a319 Fix #195 AttributeError 2022-02-16 21:25:24 -06:00
gammafn e3e353aab4 apod: prettier output for non-images 2022-01-12 22:09:23 -06:00
gammafn abe43693ca apod: Set avatar at the end, it reads better in Element 2022-01-12 22:08:44 -06:00
gammafn bdc9713a14 Add avatar support to !apod
Check if is_admin before allowing avatar
2021-08-24 23:03:28 -05:00
gammafn 44bd02d3b4 Fix bot.upload_and_send()
- Move matrix_uri_cache idea from apod into global bot, persist on restart
- TODO: add "!bot uricache [ view | clean ]" command
2021-05-11 12:52:40 -05:00
Andrea Spacca 030ec5d779 New bots (giphy, gfycat, tautulli), changes for upload and send image with url or blob content 2021-04-22 09:46:19 +02:00
Ville Ranki e7b35d9c55 Moved image upload code to shared function in bot.py. Removed the original urls for less spam. 2020-12-20 21:42:18 +02:00
Frank Becker d6a37754cd handle image upload failure 2020-03-26 19:43:59 +01:00
Frank Becker 70c1a0bd66 retry upload url if hdurl fails 2020-03-26 19:35:17 +01:00
Frank Becker 5de192097a add more debugging output to apod module uploading a file 2020-03-21 11:02:24 +01:00
Frank Becker fbf7932c4a remove original-url from explanation. add date to title 2020-03-17 21:44:04 +01:00
Frank Becker 9e2fb2ba6a apod send order title -> picture -> description 2020-03-16 07:37:52 +01:00
Frank Becker 58c12ebae8 apod split messages for better irc support 2020-03-15 19:30:46 +01:00
Frank Becker e537bbc84d remove unsupported media type message 2020-03-15 18:56:11 +01:00
Frank Becker 1ad251d184 add apod bot owner command apikey 2020-03-15 18:49:24 +01:00
Frank Becker facec3111d add apod bot commands help, stats and clear 2020-03-15 18:11:00 +01:00
Frank Becker fb10d73f61 add support to query astronomy picture by date and cache all uploads
* !apod 2020-03-04
2020-03-15 17:38:17 +01:00
Frank Becker 967ab33528 added Astronomy Picture of the Day module
* upload astronomy picture of the day to the room
* cache latest response
* use own api key by setting environment variable
  APOD_API_KEY (default: DEMO_KEY)
2020-03-14 21:10:27 +01:00