A Twitter bot used for making clips out of randomly selected media.
Since X/Twitter has been a**-f**king everyone with a free API tier in change of the "pay-per-use" tiers, in protest, this project is now using emusks! Go show 'em some love.
The bot has also transferred to Typescript, 'cause it's cool & I've been trying to use that instead. You'll also need to install bun, which serves as a Node + npm replacement & also handles the Typescript stuff.
- Bun (It's what the bot runs on, duh)
- ffmpeg (For encoding/making clips)
- A collection of media for the bot to use
- A brain or two (Just read the instructions below, one by one)
- Clone the repo -
git clone https://github.com/ktg5/twitter-mediatoclip-bot - Place the media you'd like the bot to use into the
mediafolder, then delete the_EPISODES GO HERE, file as it isn't needed.
- Note: There can be ANY amount of videos in the
mediafolder, as the bot reads all files inside the folder and selects a random one to be cliped.- BUT: This also means any file that isn't a video will also be read by the bot, so DON'T ADD ANYTHING INTO THE
mediaFOLDER THAT ISN'T A VIDEO!!!
- BUT: This also means any file that isn't a video will also be read by the bot, so DON'T ADD ANYTHING INTO THE
- Install required packages. -
bun i - Open
auth.jsonand replace theauth_tokenby following the instructions here. You will be getting the token cookie for your Twitter account, so when it says to log in, do so with your Twitter account's normal log in information. - Start the bot. -
bun start
If any errors occur, please report them to the issues page! Thank you!