A Twitter bot used for making clips out of randomly selected media.
- npm & Node.JS (It's what the bot runs on, duh)
- ffmpeg (For encoding/making clips)
- A collection of media for the bot to use
- Access to the Twitter API (aka having a Twitter Application for your account) (Free or not)
- 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
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!!!
- 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. -
npm i
- Open
auth.json
and replace all the listed keys (api & access) with your own, also make sure to set the Twitter username and video file format inconfig.json
.
- ⚠⚠ Remember to make sure your access keys are "
Created with Read, and Write permissions
" by enabling "User authentication
" in your Twitter app's page and remaking the access token & secret!
- Start the bot. -
npm start
If any errors occur, please report them to the issues page! Thank you!