Create twitch clips and download them through your own discord bot
- First, compile the program in your desired configuration.
- Next, navigate to the
${SolutionDir}/${ProjectDir}/bin/${SelectedConfiguration}/
output folder. - Open config.json and complete the 4 strings. See installation below
- Run the executable ClipDownloadDiscordBot.exe
- Call commands in discord
Arguments
These 4 strings are required: Twitch Client ID, Twitch Client Secret, Discord Bot Token, Discord User ID
- Twitch Client ID and Secret
Navigate to https://dev.twitch.tv/console. Twitch will ask you to log in and authorize.
Once logged into your Twitch dev console, click register your application.
Fill out the information for registering your application.
OAuth Redirect URL must be "http://localhost:8080/redirect/"
You will then be given a Twitch Client ID and Client Secret.
- Discord Bot Token
Navigate to https://discord.com/developers/applications.
Once logged in, create New Application, give it any name.
Then, head over to the "Bot" tab on the left side, and Add Bot.
Generate a new Discord Bot Token.
Then, match these settings to your bot.
Go to the OAuth2 tab and select URL Generator. Click scopes -> bot, and bot permissions -> administrator
Go to the link that is generated and invite your bot to your server!
- Discord User ID
Lastly, go to your discord application https://discord.com/app
If developer mode is not already enabled, go to settings > advanced > developer mode on
Go to a server/message where you can see your discord self, right click and copy ID
Enter all of these IDs and tokens into config.json
This program streamlines the process of getting a live twitch clip, and downloading that to file. The intention behind this program was to create content faster. It allows me to clip the streamer's reaction, and send it straight to a folder used by video editing software. And since videos are downloaded using Youtube-DL, any video supported by it may also be downloaded (youtube, twitter, reddit, etc).