joaquinlpereyra / twitterImgBot

Ever wanted to randomly tweet pictures from a folder? No? Well, maybe you do now.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow it to tweet GIFs

kanyawest42 opened this issue · comments

Is it possible to make changes to the code so that it'll support tweeting GIFs?

Hey kanya, impossible is nothing. As you see I'm not actively maintaining this anymore, feel free to fork it.

Somebody who can kick me in the right direction to change the code to allow gif and mp4?

Hello @krmidell

  1. So the bots apparently will try to select anything you put on the folder: https://github.com/joaquinlpereyra/twitterImgBot/blob/master/twitterbot.py#L60

  2. If I remember correctly the bot already supports GIFs, just drom em in the folder.

  3. I would expect video to work too, but if it doesn't, I would look in this function https://github.com/joaquinlpereyra/twitterImgBot/blob/master/bot/status.py#L19 to see if the Twitter API needs additional parameters or something like that.

Good luck!