remove original-url from explanation. add date to title

This commit is contained in:
Frank Becker 2020-03-17 21:29:11 +01:00
parent 9e2fb2ba6a
commit fbf7932c4a
1 changed files with 4 additions and 3 deletions

View File

@ -103,9 +103,10 @@ class MatrixModule(BotModule):
if matrix_uri is not None:
self.matrix_uri_cache[apod.date] = matrix_uri
bot.save_settings()
await bot.send_text(room, f"{apod.title}")
await bot.send_image(room, matrix_uri, f"{apod.title} - url: {url} date: {apod.date}")
await bot.send_text(room, f"{apod.explanation} || date: {apod.date} || original-url: {apod.url}")
await bot.send_text(room, f"{apod.title} ({apod.date})")
await bot.send_image(room, matrix_uri, f"{apod.title}")
await bot.send_text(room, f"original-url: {url}")
await bot.send_text(room, f"{apod.explanation}")
else:
await bot.send_text(room, "sorry. something went wrong uploading the image to matrix server :(")