bluffbot is a Telegram bot for playing a game of Liar's dice (aka Bluff). It's implemented in Go. Build the project with
go build
When running the executable, you need to have the following environment variables set:
- PORT: The port the process starts listening for updates from Telegram
- USERNAME: The bot's Telegram username
- TELEGRAM_TOKEN: Your Telegram API token
- WEBHOOK: Telegram webhook, the address Telegram should send the updates intended for this bot
The bluffbot repo includes couple of different packages:
- bluff: Core game logic and the logic for the bot itself
- telegram: Functions and types used to interact with the Telegram API
The bluffbot repo includes the files needed to run the bot in Heroku (Procfile, vendor.json).