This Bot, while being cool, may run you the risk of users executing their GDPR rights suing you for fines, since they never permitted you to use their messages. I Am Not liable If you do choose to deploy it. If someone does lawsuit you it is on YOU, Also in the unlikely event this causes your computer/server/machine/fridge to blow up it's also on you. I maintain no liability for what ever happens. It is always recommended to look through any scripts / stuff you download.
I will not be updating this repo much, there will be bugs
- Goto the releases page and download the ZIP of the source code
- Unzip the documents into a folder (this will be where the bot's files will be put it in a place you will find it)
- Open config.json.example,
- Go-to Twitch Developers to register an application
- Name Your Application (This will not be the name of the chat-bot, Your Chat-bot's name is the channel name), Set an OAuth Redirect URLs (This can be any site with an SSL certificate(HTTPS) as we will not be using it), The Category of application is chatbot
- After Pressing "Create" Press manage, Now press "New Secret", A prompt should pop up saying "Are you sure you want to create a new secret" select yes
- Now under "client secret" copy the secret (this will be a mix of numbers and letters), DO NOT share this with anyone as this is the way you will "sign into" the bot
- You may now paste the "client secret" into "twitch_token" area with the " and add "oauth:" in front of the client secret eg.
"twitch_token": "oauth:ABACE123nj123nkj12n3j",
- Put the twitch channel that you would like the bot get the sync too's username in all lowercase with a # infront of it without a space, into "twitch_channel_target" section eg:
"twitch_channel_target": "#abinash3366",
- Put the same channel's username normally into "channel1" with caps & no spaces eg.
"channel1" : "E1iteSix",
- Put the bot's twitch channel's (the user that you signed in as when you signed into twitch dev) username into "twitch_account_username" section eg,
"twitch_account_username" : "abinash_bot",
- You will need to login to discord's developer portal then create an application
- On the Left-hand bar click on bot
- Then click on "add a bot", Then "Yes do it!"
- Add a photo & Name the bot, Make your bot look cool :P
- Now Copy the token either by revelling the token and copying it or by pressing copy, then paste it into "token" eg.
"token": "BAHwjsdfvbhjasbfkljASBJKLDFBjklabASNfklanl",
- Last part for the bot, we need to add your bot to the server!, Do this by going to "OAuth2" on the left bar, then copying the Client ID, and pasting it into
"https://discord.com/api/oauth2/authorize?client_id=YOUR_CLIENT_ID&permissions=67584&scope=bot"
the YOUR CLIENT ID section of the URL then going to that webpage and adding the bot into your server - Remember to make sure the bot has access to the channel it needs to be in
- You now need the channel id of the channel you want the bot to talk into,
- To do this you need to in Discord go to Settings > Appearance > Check developer mode
- Now Right-click channel name and copy the channel ID (Copy ID),
- Now paste it into "discord_channel_id" eg.
"discord_channel_id" : "899999876"
- Now The configuration of the Bot is done!
- Now we need to install Node
- To do this go to this link and download the recommend user's file, and open the .exe
- In the Windows Search Bar search "CMD" and an open command prompt window
- Now Copy the file directory path the bot files are in (the top of file explorer)
- type cd "Filepath", eg `cd C:\Users\a\bot" then press enter
- Download the bots needed files by typing
npm install
- Let's start the bot by typing
node bot.js
- The bot should be started and now you should be able to link the chats