VickiLanger / LGBTQ-of-the-day-bot

Twitter bot tweeting fun goofy lgbtq things and queer history of the day
https://twitter.com/LGBTQotd
GNU General Public License v3.0
82 stars 173 forks source link

Add a reply tweet defining the label using in the initial tweet #91

Closed VickiLanger closed 3 years ago

VickiLanger commented 3 years ago

Describe the solution you'd like

Additional context reply code in tweet.py needs to uncommented and adjusted as necessary

def main():
    api = authenticate_api()
    #reply_with = get_reply()

    print("finding a tweet...")
    tweet = get_tweet()
    print("chose tweet: " + tweet)
    tweet = api.update_status(tweet)  # variable used later for reply to this tweet
    print('tweet has been tweeted')
    #api.update_status(status=reply_with, in_reply_to_status_id=tweet.id, auto_populate_reply_metadata=True)
    #print('chose reply:' + reply_with)
    #print('reply has been tweeted')

main()

Don't forget to follow the bot on Twitter to see the hard work you put in.

JasirZaeem commented 3 years ago

I would like to have a go at this issue. I'll change the labels list into a dictionary, where the labels are the keys and their corresponding values are their definitions, then update get_reply to retrieve and reply with the definition of the label used in the original tweet.

VickiLanger commented 3 years ago

Sounds great. I look forward to seeing your PR. @JasirZaeem