⭐ Star us on GitHub — it motivates us a lot!
This is a Discord/Twitch bot that uses AI models to do some cool stuff.
Here are the list of AI models that were used in this project.
- Clone the repo on your machine using git or use this link to download a
.zipfile of the project. - Install Node.js.
- Access the project folder and create .env file. Follow
.envfile setup. - Edit the following:
- Line 4 in
src/index.jsto include the right channels where the bot will be join.
- Line 4 in
- Open
srcfrom the terminal and run the following:
# to install packages
npm i
# to run the server
nodemon- Install Python Python 3.7 or greater.
- Install required packages for each AI model. Follow AI models setup.
TODO
The content of the .env would be the following:
# development
PORT=5000
BASE_URL=http://localhost:5000
# General
PREFIX=!
# Discord bot
DISCORD_CLIENT_ID=XXX
DISCORD_TOKEN=XXX
DISCORD_GUILD_ID=XXX
# Twitch bot
TWITCH_ACCESS_TOKEN=XXX
TWITCH_CLIENT_ID=XXX
TWITCH_BOT_USERNAME=XXXInstructions to get the required values:
DISCORD_CLIENT_IDandDISCORD_TOKEN:- Access Developer Portal then create a
New Applicationif you don't have a bot already - Click on the bot
- Select
OAuth2then copyCLIENT ID(this is forDISCORD_CLIENT_ID) - Select Bot then copy
TOKEN(this is forDISCORD_TOKEN)
- Select
- Access Developer Portal then create a
DISCORD_GUILD_ID: Follow this link to setupDeveloper Modeand to get your server's ID (akaDISCORD_GUILD_ID)TWITCH_ACCESS_TOKENandTWITCH_CLIENT_ID: Follow this linkTWITCH_BOT_USERNAME: This is your bot's twitch username (lower cased)
If you want the images to be accessed externally, use ngrok and replace BASE_URL value in src/index.js with the new url.
TODO
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.