Skip to content

howlettga/wordle-golf-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wordle Golf Bot

A telegram bot that can be used to track Wordle Golf scores

Description

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.

Dependencies

Configure

Create a .env file with the following properties:

TELEGRAM_BOT_TOKEN=
GOOGLE_AUTH_METHOD=
GOOGLE_SHEET_ID=

Telegram Bot

  1. Register a new bot with the @BotFather.

  2. Save the token.

Google Sheet

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.

  1. Create a new Worksheet Document.

  2. Rename the initial sheet to init. Google Sheets requires one sheet to exist in every document; Wordle Bot will ignore sheets named init, so this can safely be used.

  3. Save the id.

Google Sheets Authentication

Authentication methods supported are adc (application default credentials) or oauth2.

Application Default Crednetials

npm run login -- --impersonate-service-account=<account>@<project>.iam.gserviceaccount.com

OAuth 2.0

Must add a credentials.json file.

Install

npm install

Develop

npm run dev

Build

npm run build

Run

npm start

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published