Page 1 of 1

Discord BGA bot

Posted: 15 October 2020, 21:33
by Pocc
I created a BGA bot that you can use to do a few things. This is similar to the recently posted topic about discord servers (https://boardgamearena.com/forum/viewto ... =3&t=17809), which points to a server where this bot is used.

- Create BGA games with options*
Image
- Add friends*
Image
- List all tables that a player or players have going.
Image

* Requires sign in.

You can add it to your server with https://discord.com/api/oauth2/authoriz ... &scope=bot.

I wanted to share this in case others might find this useful.

Re: Discord BGA bot

Posted: 18 October 2020, 19:17
by mavit
To save anyone else from searching, you can find out a bit more about the capabilities of this bot at https://github.com/pocc/bga_discord

Re: Discord BGA bot

Posted: 18 October 2020, 21:07
by Pocc
I've added content to the README and it links to sub documents for BGA and TFM (terraforming mars) commands.

Thanks to @mavit for a pull request!

If you have any questions about capabilities, feel free to ask them here.

Re: Discord BGA bot

Posted: 24 October 2020, 05:45
by urbaer
So just to check, you can't create realtime games?

And it seems like it's impossible to start a game of Carcassonne now that hunters and gatherers exists

I try
!bga make Carcassonne

and it responds
carcassonne matches [carcassonne,carcassonnehuntersandgatherers]. Use more letters to match.

Re: Discord BGA bot

Posted: 24 October 2020, 07:32
by Pocc
These are good questions.

1. Default is speed:1/day. To change the speed, add `speed:fast`, `speed:normal`, or `speed:slow` to your command.
2. Thanks for bringing this to my attention. It should be fixed and you should be able to create games for Carcassonne and Carcassonne: Hunters and Gatherers.

Re: Discord BGA bot

Posted: 04 November 2020, 00:20
by mavit
Pocc wrote: 24 October 2020, 07:32 1. Default is speed:1/day. To change the speed, add `speed:fast`, `speed:normal`, or `speed:slow` to your command.
This surprised me too. I expected the botʼs default to be the same as BGAʼs default, which is real-time normal speed. As it happens, this is usually what I want.

Having to remember to append `speed:normal` to every `make` command doesnʼt seem great. If Iʼm running my own instance of the bot I can hack it to change the default, but this doesnʼt seem great either. Perhaps the bot should remember which options a user specifies, and repeat those if they later make a table without mentioning them.

Re: Discord BGA bot

Posted: 04 November 2020, 03:35
by Pocc
That's a good point - I'd create an issue.

Re: Discord BGA bot

Posted: 12 December 2020, 09:25
by Pocc
The bot is now interactive and saves preferences so if you want to force a specific setting when you call it, it will obey that.

Otherwise, it will use the last-used setting you used for that game on BGA.