https://github.com/pocc/bga_discord
Discord bot to create games on Board Game Arena
https://github.com/pocc/bga_discord
Last synced: 12 months ago
JSON representation
Discord bot to create games on Board Game Arena
- Host: GitHub
- URL: https://github.com/pocc/bga_discord
- Owner: pocc
- License: apache-2.0
- Created: 2020-05-20T09:59:00.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-05-04T03:19:56.000Z (about 4 years ago)
- Last Synced: 2025-07-17T04:07:37.293Z (about 1 year ago)
- Language: Python
- Size: 195 KB
- Stars: 11
- Watchers: 4
- Forks: 5
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BGA Discord
[](https://travis-ci.com/pocc/bga_discord)

This is a bot to help you set up [board game arena](https://boardgamearena.com) (BGA)
and [terraforming mars](https://github.com/bafolts/terraforming-mars) (TFM) games in discord.
You can add the bot to your server by [giving it access](https://discord.com/api/oauth2/authorize?client_id=711844812424216598&permissions=79872&scope=bot).
These commands will work in any channel @BGA is on and also as direct messages to @BGA.
## Available commands
BGA commands start with `!bga` and TFM games start with `!tfm`
Check one of the help documents for more information about each subcommand:
* `bga`: [BGA Help](src/docs/bga_help_msg.md)
* `tfm`: [TFM Help](src/docs/tfm_help_msg.md)
## Server Bot Setup
**NOTE: This section is for hosting this bot yourself. To add it to your server, use [this link](https://discord.com/api/oauth2/authorize?client_id=711844812424216598&permissions=79872&scope=bot).**
Run the following on any VPS
```bash
pip install -r requirements.txt
```
Follow the steps required to [set up a Discord bot account](https://discordpy.readthedocs.io/en/latest/discord.html) with the following privileged gateway intents:
- Server Members Intent
Add the following permissions:
- Send Messages
- Send TTS Messages
- Manage Messages
- Read Message History
Create a file called `src/keys.py` and paste the bot token into it:
```
TOKEN = 'yOUR tOkeN hEre'
```
Generate an encryption key with:
```bash
( umask 077 && python -c 'from cryptography.fernet import Fernet; print("FERNET_KEY = %s" % Fernet.generate_key())' >> src/keys.py )
```
Run:
```bash
make run
```
## License
Apache2