jeancochrane / chanomemes

( ͡° ͜ʖ ͡°) A Twitter propoganda bot that reads @mentions and automatically generates memes about Chance for Mayor.
https://twitter.com/chano4mayor2k19
MIT License
0 stars 0 forks source link

Make a queue instead of replying automatically #6

Closed jeancochrane closed 7 years ago

jeancochrane commented 7 years ago

We should have to review every meme before it goes out.

kalilsn commented 7 years ago

@jeancochrane I'll take this one! Here's my proposed architecture:

kalilsn commented 7 years ago

This will definitely take some refactoring of the bot but hopefully not too much! I can see this either working as something where the server script (assuming it's bottle.py) imports a method for constructing/sending a tweet or simply making a standalone script to send a tweet that accepts a command line parameter to specify the necessary info.

jeancochrane commented 7 years ago

This looks like a great plan! I wonder if it's too ambitious to try to launch with this on Saturday, though. What are some ways we could skip the admin backend (or launch a simpler version while we tweak it)? I could see it working fine if it just saves the image somewhere, and we keep an eye on email notifications. Or we could see if Twitter exposes drafts to the API, and try to save the tweets as drafts for review?

On Thu, Mar 30, 2017 at 6:51 PM Kalil Smith-Nuevelle < notifications@github.com> wrote:

This will definitely take some refactoring of the bot but hopefully not too much! I can see this either working as something where the server script (assuming it's bottle.py) imports a method for constructing/sending a tweet or simply making a standalone script to send a tweet that accepts a command line parameter to specify the necessary info.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jeancochrane/chanomemes/issues/6#issuecomment-290577092, or mute the thread https://github.com/notifications/unsubscribe-auth/ANg6GhxCvNRPMPhMrDXLyCpt2yeJlZuzks5rrD_lgaJpZM4Mu59I .

kalilsn commented 7 years ago

Oof yeah this is not feasible by Saturday – I was assuming this would mean putting off the bot for a bit. The drafts thing is a great idea though! If there's an api endpoint for adding a draft, I think that's definitely the best way forward.

kalilsn commented 7 years ago

there's no drafts endpoint 😒

jeancochrane commented 7 years ago

OK, talked about this with @beamalsky. We think the best way to move forward will be to use emails: attach the image to an email (Python email module seems to support this), along with the text of the tweet @ us and suggested reply text, and then email it to whoever is in charge of approving the tweets.

Sound good @kalilsn? If so, I'll move on this and hopefully have it implemented in the next hour or so.