Releases: LakeYS/Discord-Trivia-Bot
Releases · LakeYS/Discord-Trivia-Bot
TriviaBot 1.8.6 - Hotfix 9/2/2023
TriviaBot 1.8.5 - Hotfix 12/15/2021
What's New
- Fixed unexpected game endings related to Discord interactions.
Changes for self-hosted instances
- Game timers now display in hours if the timer is longer than one hour. For example, "The answer will be revealed in x hours" instead of minutes.
- Fixed "Unknown interaction" errors disrupting the bot. Now displays a warning in console, "Failed to reply" or "Failed to update".
TriviaBot 1.8.4 - Nickname Abuse Fix
What's New
- Improved filtering to prevent usernames and nicknames from inserting formatting and links into game messages.
Changes for self-hosted instances
- Fixed improper handling for missing components. Now displays an error, "Failed to retrieve component..."
- "Received late response" errors now log additional relevant information.
- Added engines field to package.json, indicating the required version of node.js (16.6.0 or higher).
- Updated discord.js to 13.1.0.
TriviaBot 1.8.3 - Buttons Hotfix
What's New
- Answer buttons now cut off with "..." if an answer is greater than 80 characters in length.
- Fixed games stopping abruptly with either no error or "components[0].components[x].label: Must be 80 or fewer in length"
Changes for self-hosted instances
- File database now enforces an 80 character limit for answers unless
hangman-mode
and/orallow-long-answers
are enabled. This follows Discord's limit of 80 characters per button.
TriviaBot 1.8.2 - More Buttons
What's New
- When a round ends, the button corresponding to the correct answer now changes color.
- Buttons now become greyed out at the end of the round.
- The
trivia help
command now uses link buttons, replacing the text-based links within the response. trivia ping
Changes for self-hosted instances
- Fixed potential errors related to stat recording (stats.json) knocking the bot offline -- Now writes a warning in the console instead.
TriviaBot 1.8.1 - Hotfix
What's New
- Default round lengths have been updated to accommodate buttons. Rounds are now five seconds shorter and have a slightly shorter wait between rounds. (15 second rounds, 4 seconds in between)
Changes for self-hosted instances
- Updated discord.js to 13.0.1.
- Fixed console commands resulting in errors.
- Typing "exit" into the console now properly logs out from Discord, rather than leaving the bot online for several minutes.
- Sharding manager now always automatically restarts the bot.
TriviaBot 1.8 - Buttons
What's new
- Games now use buttons. Answers are accepted by button press rather than a typed answer. The new buttons are ideal for more serious competitions, as players can no-longer snoop on answers.
- The classic typed-answer mode is still accessible via
trivia play advanced
. - Existing pre-made
trivia play advanced
commands may no-longer work as expected. - Advanced game command strings are no-longer enclosed in quotation marks, for easier copying.
- Added a warning message to
trivia play hangman
. (Some questions not suited for hangman style gameplay)
Note: With the new buttons mode, reaction mode is planned to be removed in a future update.
Changes for self-hosted instances
- Added additional logging when a message fails to send.
This update requires Node.js 16.6 or higher. Check "Setting up the bot" under the install instructions for your OS.
Reactions mode is planned to be removed in a future update. Please plan accordingly if you rely on reaction mode.
v1.7 - Command Improvements
What's New
- Added a new command:
trivia play hangman
. This command can be used to start hangman games more easily, without needing to go through advanced game setup. - The help command has been re-worked for readability.
- The "trivia ping" command has been removed -- it has been absorbed by "trivia help". You can now see shard and response information on the help command footer.
- Permissions errors no-longer ask for the defunct "Read messages" permission.
- Fixed admins only being able to forcibly cancel advanced game setup by typing "trivia stop". Typing "cancel" now works as well.
Changes for self-hosted instances
- Bot listing tokens have been moved to their own section in config, and now have a toggle named enable-listings.
- Added new config option,
stat-guild-recording
. This option records to stats.json when guilds are created/deleted for the bot.
- Fixed error handling for when a token has not yet been provided -- now displays the intended messages.
- Fixed "Failed to delete player answer: Cannot execute action on a DM channel" errors in DM games with auto deletion.
- Fixed
reveal-answers
config option defaulting to false if not specified in config
For more information on how to set up the new question parameters, see "Optional Configurations for Custom Questions" in the install guide: https://lakeys.net/triviabot/install.html#customQuestionsOptionals
v1.6.7 - Config Hotfix
- Removed old bot listing websites from the config file.
- Fixed rounds running endlessly if
use-fixed-rounds
is not defined in config. (i.e. if you've imported config from an old version of the bot)
v1.6.6 - Cumulative Update for 2021
NOTE: Make sure to update to the latest version of Node.js LTS to install this update. See the install instructions for more info:
How to Install
What's New
- Reworded "Game will end" warnings for clarity -- now reads "Game will end in (x) rounds if there is no activity".
- Updated answer sorting to properly account for answers that use diacritics.
- Hangman game hints at the start of the game now start with "Hint:" for clarity.
- Fixed hangman games being shorter than intended.
- Fixed broken formatting in questions that contain underscores.
Changes for self-hosted instances
- Updated discord.js to 12.5.2
- Config and question files are now named
*.json.example
so that they are less likely to be overwritten by accident. - The sample database question files now use quotes, as this is a more ideal solution in case special characters are required in YAML. See here: https://github.com/LakeYS/Discord-Trivia-Bot/tree/master/Questions
- Added the
hangman-hints
option to enable or disable hangman hints. - Added the
reveal-answers
option to toggle whether answers are revealed at the end of a round. - Fixed numbers of rounds can now be set using
use-fixed-rounds
androunds-fixed-number
in config. - The shard process(es) now change their title to indicate when they are still initializing. (Example:
Trivia - Shard 0 (Initializing)
) - In debug mode, "Token" now reads "DB Token" instead for additional clarification.
- The console will now display the disconnect code and reason (if applicable) when the Discord client disconnects.
- The ASCII logo display is now disabled by default. It can be optionally re-enabled in config using the
display-ascii-logo
option. - Updated error messages in loading the config file to be more easily readable.
- Added additional clarification for error messages in the file database when the "difficulty" field is specified incorrectly.