Releases: ezelkow1/discord-key-bot
Add uninvited warning
Currently the bot does not warn if it has never been invited to a server, it just crashes instead unhelpfully. Adding a warning if it detects that it has no servers in its list returned from discord once it has gotten its ping back and if the list is empty displays the invite link so users can easily add it.
File fixes, stop list broadcast
This release brings in an option to disable the bot from displaying the entire keys list to the broadcast channel. It can be quite annoying if someone intentionally or mistakenly does a listing to get spammed if you have a large amount of keys. The option ListPMOnly will prevent this when set to true in the config file.
Also added protection around the file usage. Realized it was possible if people were fast enough to be able to do conflicting !add/!take/etc. This should take care of that
User key limiting
This adds limits to users taking keys. If you specify a "UserFile" in the conf then it will generate that file and use it as a database of users and what games they have taken. As a user takes a game its name will be stored in the users list and if they request it again they will be denied
Fix crash bug - invalid dmchan
This fixes a long standing crash bug. Sometimes discord will send out messages directly to all clients at random times. Keybot would always try to open a direct message channel to any messages recieved. This causes an error in these instances since one cannot be opened with a system discord message and since it was not error checked on open would crash when we attempt to use it.
Added an error check on all the dmchans and this appears to fix it
Role Support
This release introduces roles support. You can now populate a KeyRole field in the config file (or leave it empty as ""). If populated then only users with a role matching this name will be able to communicate with the bot
v1.1 Release
- Updated the documentation
- Re-organized files so it wasn't monolithic
- Standardized on passing ref to save/load
- Added key type parsing and storage
- Added redemption link generation for steam and gog types
Version 1.0 Release
First fully working release. All the known bugs from beta testing have been worked out and its currently in use on a discord server