jesmaster / discord-bgg-bot Goto Github PK
View Code? Open in Web Editor NEWBoardgamegeek Bot for Discord
Boardgamegeek Bot for Discord
For the !bgg request command add an optional date field which will extend the polling time out to that date.
Example: !bgg request feast for odin --date=2021-01-30
The bot crashes when the interaction user isn't available. Use a fallback to not show the author information in this case.
Since update to slash commands, commands do not work in my server.
I have another bot running in the server (MEE6) and even disallowing the use of slash commands on that bot doesn't allow BGG bot to work with slash commands.
I was not sure where to report this, but it looks like the BGG bot doesn't respond to commands in Discord as of 13 Feb 2022. It has been going on for a while and we are not sure what to do with it. It will do the "!bgg" command, but nothing else. Just wanted you to know. Thanks!
Running !bgg-search codenames
shows extra characters in the description most likely coming from the xml parser. Look for a way to clean this up.
Tried the bot today, but none of the commands work. It always gives errors like the title. What gives?
/Suggest does not work work currently, it gives an error saying that whatever option entered is 'Not a Valid Choice'
Need to explicitly close redis connections. Hitting the 20 max connections from heroku free plan.
https://github.com/lukechilds/keyv-redis/issues/12#issuecomment-363061457
Create a new command to list a users collection
!bgg-collection <username>
Cache results from BGG API with Keyv
https://discordjs.guide/keyv/#installation
Update help command output for suggest command to remove the line saying polling will last a hour.
Follow guide here to add unit tests:
https://medium.com/@aussy/lets-create-a-discord-music-bot-using-test-driven-development-tdd-part-1-9c95ea32766f
I like inviting FOSS bots to my discord server. Is this project available under a free software license to execute, modify, and redistribute code?
Sometimes the bot crashes because a server didn't allow for message reaction permissions for the bot. Update the code to catch this error when a user uses the suggest option when the server doesn't allow for reactions.
Add help command to list out other commands. Use this if there are no other arguments.
every command return error APPLICATION NOT RESPONDING
Hello,
The command /search Djinn returned: https://boardgamegeek.com/boardgame/384150/djinn
However, this also exists: https://boardgamegeek.com/boardgame/243698/djinn
Neither /search Djinn (2018) nor /search Djinn 2018 returned any result.
Preferably, /search Djinn would briefly list both, with an option to choose the desired game.
or, if I am missing the proper syntax, could it be added to the readme or /help ?
Thanks for the bot.
Regards.
Foreign language searches are causing the bot to crash.
example: 派遣戦隊マモルンジャー
Currently returning newest result for exact search, change to oldest for better results until API itself is improved.
Attempt API search call with non-api https://boardgamegeek.com/search/boardgame?q={game_name} call which returns much better results.
If a command is successful, delete the message that executed the command.
In the near future, Discord will be restricting bots from accessing message content (with a few exceptions) in April (per this blog post). As such, this bot will no longer work. Discord will now require Application Commands in order to handle these queries in the future.
Discord.js has documentation on Application Commands here.
I could run this on my VPS, but I'm assuming you already do somewhere?
For context, this is my bot, https://github.com/pocc/bga_discord, and I provide the oath link on line 2.
Allow a user to run commands without the dash.
For example !bgg-search agricola
and !bgg search agricola
should do the same thing.
Keep Readme.md up to date with command list
Now that the bot is back online, I tried using the search and it works wonderfully. However, the /collection always returns the error like in the title. I tried using 3 different usernames and make sure those usernames are correct.
!bgg-search coup
doesn't find the expected game. The BGG API does not support a weighted sort on it's search call so the best alternative is to run a call with the exact=1
parameter first to try to find an exact match and if there are no results then do what it's doing now.
Also there are many games with the same name, so when doing the exact call return the last result which should be the newest one.
Remove config.json and move sensitive data to .env file using dotenv npm package
I just found this bot and added it to my server. Love it so far, but wondered if there was a way to link a Discord User's ID with their BGG ID to make looking at collections a little easier. Just a question/suggestion.
Thanks for making this!
Redis cache currently 24 hours, update to 1 week.
Add a suggest command that does the same thing as the search command adds a new feature to capture emoji reactions for participation options.
Reference forked code commit: pocc@37110b4
Replace custom api calls with bgg node js package.
https://github.com/monteslu/bgg
If a collection lookup is done with a name that doesn't exist on BGG then the bot crashes.
Invite link in readme doesn't have the correct permissions for the full functionality of the bot.
It could be fun to page through Twinge's collection using https://github.com/VirusLauncher/customizable-discordjs-pagination:
https://boardgamegeek.com/collection/user/Twinge?sort=rating&sortdir=desc&minrating=8&rating=10&rated=1
For reference in one of my bots I allow paging through r/chess images:
A typo in the collection attempts log when unable to get collection data after 5 attempts causes the bot to crash.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.