Int Bot is a Discord bot dedicated to keeping track of who's running it down in League of Legends matches.
-
Clone this repository by running
git clone github.com/briankoehler/int-bot-v2.git
-
Create a
.env
file in the project's root directory. Set up your env variables within the file as below.
BOT_TOKEN= # Discord bot's token
CLIENT_ID= # Discord bot's client ID
RIOT_TOKEN= # Riot API token
DATABASE_URL= # Connection string to primary database
SHADOW_DATABASE_URL= # Connection string to shadow database (required by Prisma)
-
Run
npm install
to fetch all required NPM packages. -
Run
npm run commandRegister
to register the defined Discord bot commands. -
Run
npx prisma generate
to create and apply database migrations. -
Execute the SQL query located in
src/db/function.sql
on your database. -
Execute the SQL query located in
src/db/trigger.sql
on your database. -
Run
npm run server
andnpm run bot
as their own processes or in their own terminals.