A telegram bot that can be used to track Wordle Golf scores
This project runs a telegram bot server that creates and tracks Wordle Golf games within a chat group. It relies on Google Sheets to keep track of scores.
Create a .env
file with the following properties:
TELEGRAM_BOT_TOKEN=
GOOGLE_AUTH_METHOD=
GOOGLE_SHEET_ID=
-
Register a new bot with the @BotFather.
-
Save the token.
You need a Google Sheet Document configured to use as the scoring database. Each new round will be added as a new sheet on this document.
-
Create a new Worksheet Document.
-
Rename the initial sheet to
init
. Google Sheets requires one sheet to exist in every document; Wordle Bot will ignore sheets namedinit
, so this can safely be used. -
Save the id.
Authentication methods supported are adc
(application default credentials) or oauth2
.
npm run login -- --impersonate-service-account=<account>@<project>.iam.gserviceaccount.com
Must add a credentials.json
file.
npm install
npm run dev
npm run build
npm start