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
.env
file by doing:cp .env.sample .env
- If you're using
nvm
do annvm install && nvm use
then run anpm install
- Run
npm run dev
and it should start up
DISCORD_BOT_TOKEN
- Visit the Discord developer portal
- Create a
New Application
- Add a
Bot
to the app - Copy the
Token
from 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_KEY
should be set to the value of the"private_key"
- The
GOOGLE_SERVICE_ACCOUNT_EMAIL
should 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
Widget
section - 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"
).