From 668ed5e96a5c58e3a9b3aa896de0089976063990 Mon Sep 17 00:00:00 2001 From: Holly McFarland Date: Tue, 9 Mar 2021 13:02:24 -0500 Subject: [PATCH] log url of posted replies --- mtgcardlookup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mtgcardlookup.py b/mtgcardlookup.py index 5a4b4dc..e68cd82 100755 --- a/mtgcardlookup.py +++ b/mtgcardlookup.py @@ -225,8 +225,8 @@ async def listen(c, me): reply_text = f'{status_author} Sorry! You broke me somehow. Please let Holly know what you did!' log('Sending reply...') - await c.create_status(status=reply_text, media_ids=media_ids, in_reply_to_id=status_id, visibility=reply_visibility) - log('Reply sent!') + reply = await c.create_status(status=reply_text, media_ids=media_ids, in_reply_to_id=status_id, visibility=reply_visibility) + log(f'Reply sent! {reply["uri"]}') # https://stackoverflow.com/a/55505152/2114129 async def repeat(interval, func, *args, **kwargs):