This is a Discord bot to handle the managing of "Boardgame Library" sharing via a Google Sheet
It uses two main packages to do this:
- Clone the repo
- Create you own
.envfile by doing:cp .env.sample .env - If you're using
nvmdo annvm install && nvm usethen run anpm install - Run
npm run devand it should start up
DISCORD_BOT_TOKEN
- Visit the Discord developer portal
- Create a
New Application - Add a
Botto the app - Copy the
Tokenfrom the bot
GOOGLE_PRIVATE_KEY && GOOGLE_SERVICE_ACCOUNT_EMAIL
- Begin by following this guide to create a google cloud project through to
step 5.e - With the
JSON key, theGOOGLE_PRIVATE_KEYshould be set to the value of the"private_key" - The
GOOGLE_SERVICE_ACCOUNT_EMAILshould be set to the value of the"client_email"
GOOGLE_SHEET_ID
- Visit Google Sheets
- Create a
Blank Sheet - Set the header row to:
Game, Player, Count, Owner, Location, BGG Link - Copy the piece of the url that is inbetween
/spreadsheets/d/and/edit(i.e.https://docs.google.com/spreadsheets/d/<GOOGLE_SHEET_ID>/edit).
GUILD_IDS
- Go to the Discord Server you want to use
- Open the server settings
- Navigate to the
Widgetsection - Copy the
Server ID
If you have multiple servers you want to use, then simply add them all separated by commas (i.e. GUILD_IDS="1234,5678,91011").