Welcome to the Boardgame Night Bot project! This bot is designed to help you organize and manage board game nights with your friends.
- Event Scheduling: Easily schedule game nights and send invites to your friends.
- RSVP Tracking: Keep track of who is attending the game night.
To install the Boardgame Night Bot, follow these steps:
- Clone the repository:
git clone https://github.com/DangerBlack/boardgame_night_bot.git
- Navigate to the project directory:
cd boardgame_night_bot - Create a file
.envplease include the following secretsTOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx HEALTH_CHECK_URL=https://hc-ping.com/xxxxxxxxxxxxxxxxxxx BOT_NAME=name_of_your_bot BOT_MINI_APP_URL=https://t.me/botname/miniapp_name PORT=8080 DB_PATH=./archive BGG_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Note
You must register MiniApp url to the bot fathers before using the bot.
Please register using /newapp and when asked for
Now please choose a short name for your web app: 3-30 characters, a-zA-Z0-9_
chose home
To start the bot, run the following command:
go run src/main.goCreate a forward using ngrok to port 8080 and paste the link provided into BOT_MINI_APP_URL .env then edit bot mini app url settings in bot father
ngrok http 8080docker build -t boardgames-night-bot .
docker run --env-file .env -p 8080:8080 -v ./archive:/archive boardgames-night-botdocker buildx create --use
docker buildx build --platform linux/arm64 -t dangerblack/boardgames-night-bot:arm64 .
docker buildx build --platform linux/arm64 -t dangerblack/boardgames-night-bot:arm64 --push .
version: "3.8"
services:
bgg_night:
build: .
container_name: bgg_night
environment:
- TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
- HEALTH_CHECK_URL=https://hc-ping.com/xxxxxxxxxxxxxxxxxxx
- BOT_MINI_APP_URL=https://t.me/name_of_your_bot/home
- BOT_NAME=name_of_your_bot
- DB_PATH=/archive
- BGG_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
ports:
- "8080:8080"
volumes:
- ./archive:/archive
restart: unless-stopped
We welcome contributions! Please read our contributing guidelines for more details.
This project is licensed under the MIT License. See the LICENSE file for details.
If you have any questions or suggestions, feel free to open an issue or contact us.
Enjoy your game night!