Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

twitter-media-clip-bot

A Twitter bot used for making clips out of randomly selected media.

v2 is out!!

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.

Requirements!!!

  • 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)

How to work.

  1. Clone the repo - git clone https://github.com/ktg5/twitter-mediatoclip-bot
  2. Place the media you'd like the bot to use into the media folder, then delete the _EPISODES GO HERE, file as it isn't needed.
  • Note: There can be ANY amount of videos in the media folder, 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 media FOLDER THAT ISN'T A VIDEO!!!
  1. Install required packages. - bun i
  2. Open auth.json and replace the auth_token by 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.
  3. Start the bot. - bun start

If any errors occur, please report them to the issues page! Thank you!

About

A Twitter bot used for making clips out of randomly selected media

Topics

Resources

Stars

6 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages