Skip to content

Releases: LakeYS/Discord-Trivia-Bot

v1.4.2 - Critical Scoring Fix

01 Sep 19:09
49cbe31
Compare
Choose a tag to compare

Warning: The commit and source code files that are tagged with this release do not properly reflect the changes made in it.

  • [49cbe31] Fixed scores being counted between rounds.

v1.4.1 - Score Display Fix

24 Jul 20:18
cc2064a
Compare
Choose a tag to compare

[cc2064a] The final scores now display when an admin types 'trivia stop' between rounds

v1.4

21 Jul 18:44
12278c8
Compare
Choose a tag to compare

profile_2-1 4

New in 1.4

  • Trivia games now use a scoring system. Rounds are scored are based on question difficulty; when a game ends, everyone's final scores are displayed.
  • Players can now change their answer in a game. (The last answer given is accepted instead of the first)
  • Trivia games now show players' nicknames for the guild (if they have one) instead of their usernames.
  • Trivia games now read "Incorrect, (name)!" instead of "Correct answers: Nobody!" when only one user is playing.
  • [9191d00] Fixed the "Failed to generate a session token for this channel." error displaying repeatedly when a token cannot be generated.

Server-Side Changes

  • Added listing support for botsfordiscord.com, discordbot.world, and listcord.com. Use the following config options: botsfordiscord.com-token, discordbot.world-token, listcord.com-token
  • A warning now displays if an invalid string (such as a client secret, etc.) has been entered as a token.
  • DM games are no-longer excluded from failover.
  • JSON parsing errors now log the input.
  • Added several new config options for configuring custom scripts and beta mode features.
  • The terminal now reads "TriviaBot Beta [version]" when in beta mode.
  • Added console command: exportexit
  • Updated circular-json to 0.5.5
  • [c545e22] Fixed format of .sh files. This should fix issues with launching the bot on Linux systems.
  • [eadf1b4] Fixed the "trivia stop" warning message not adjusting when rounds-end-after is updated in config.
  • [5276ac2] Fixed "trivia help" not adjusting properly when databaseURL is updated in config.
  • [362997d] Fixed the "allow-eval" option not working correctly. This allowed for a wide variety of issues on certain systems.

WARNING: DO NOT use exports to carry game data from previous versions to this update.

v1.3

20 May 18:20
1a1f2c4
Compare
Choose a tag to compare

Profile Picture

New in v1.3

  • The "trivia stop" and "trivia cancel" commands now cancel the game when typed by an administrator.
  • The amount of time users have to answer is now displayed at the start of a game.
  • Trivia games now end after two rounds of inactivity rather than one.
  • Trivia games now last 20 seconds instead of 25. This is to compensate for the previous change.
  • Bot now writes "Game ended." when a game ends.
  • The "trivia play" command no-longer attempts to match single-letter category queries.
  • The guild and question counts in the 'trivia help' command are now formatted with commas.
  • Typing "trivia help" now displays the active version of discord.js.
  • [7abc3ca] Fixed "trivia play" responding with an error when extra letters are added after "play" (e.g. "trivia playy")
  • [01c5ca6] Fixed "trivia stop" or "trivia admin cancel" displaying a warning message when there is no game running.
  • [d7f6b13] Fixed "trivia stop" not working in DMs.

Server-Side Changes

  • Failover system now works even when the shard count changes.
  • Added config option: auto-delete-msgs.
  • Added config option: rounds-end-after. This configures how many inactive rounds are allowed before a game ends. This is set to 2 by default; for behavior identical to previous versions, set this to 1.
  • Updated circular-json to v0.5.4.
  • [2e87a2c] Fixed 'exit' command only working on index in the console.
  • [71d0e12] Fixed "Error occurred while posting to bots.discord.pw" displaying twice in the console.

v1.2

03 Apr 20:37
16a6e1a
Compare
Choose a tag to compare

Logo

New in v1.2

  • The 'trivia help' command has been overhauled with better performance and rich embeds.
  • The 'trivia categories' command now shows question counts for each category.
  • The bot now internally records some global statistics about trivia games. These statistics will be viewable via command in a later update.
  • The 'trivia help' and 'trivia categories' commands now respond faster.
  • Round timers have been increased from 15 seconds to 25 seconds.
  • [d0fa2dd] Revamped the bot's permission check system. This should prevent the bot from breaking in rare instances where permissions are not interpreted correctly.
  • [3c76891] Active trivia games now automatically save and reload when an internal error occurs to prevent the game from getting interrupted.
  • [df50c1f] Fixed bot getting stuck in a loop in rare cases when the database fails to return a new token.
  • [f1b1b7c] Fixed 'trivia categories' not displaying error messages properly.
  • [add1cb8] Fixed games' timers occasionally becoming out of sync with messages. (e.g. ending before the answer message would display)
  • [07006d9] Fixed repeating "Failed to query the trivia database with error code 3" errors.
  • [4f7b9a8] Fixed "Unable to find the category you specified" error displaying when a game is already in progress.

Server-Side Changes

  • Added internal config option: allow-eval. This is disabled by default as a workaround for cases when "Eval on index:" displays in the console and the bot never connects.
  • Game data can now be saved to the disk easily using the following console commands: export, import, exportall, importall. This allows for maintenance and reboots without disrupting active games. Note that this requires allow-eval to be enabled.
  • Added internal config option: databaseURL
  • Added internal config option: database-cache-size
  • Updated snekfetch package to 3.6.4
  • Updated discord.js to 11.3.2
  • [271b142] Fixed "Discord global.client error: 'undefined"

v1.1.4 - Hotfix for run.sh

27 Feb 20:59
be96db0
Compare
Choose a tag to compare
  • [0684090] Fixed bot failing to launch on Linux-based systems.

v1.1.3

30 Jan 22:02
af44182
Compare
Choose a tag to compare
  • Added shard-count config option.
  • [1b3a6e6] Fixed duplicate trivia questions in custom category games.
  • [9c338e3] Fixed "Error: Cannot find module 'snekfetch'"
  • [ce409d2] Fixed crash when typing 'trivia help'
  • [1bab4cf] Fixed vague error message when the client fails to log in.

v1.1.2 - JSON Parsing Hotfix (Part 2)

19 Jan 21:22
16310a1
Compare
Choose a tag to compare
  • [73e26c6] Fixed crash while attempting to retrieve category list.
  • [a876eb5] Fixed crash when starting a trivia game or entering 'trivia categories'.

v1.1.1 - 'Unexpected end of JSON input' Hotfix

16 Jan 21:34
90b7f34
Compare
Choose a tag to compare

[0e8c99c] Fixed crash when attempting to initialize the category cache.

v1.1 - Sharding and Custom Categories

16 Jan 21:23
36c30da
Compare
Choose a tag to compare
  • Users can now specify a category when entering the 'trivia play' command.
  • Questions are now cached, meaning that games will start much faster! This also prevents the bot from flooding the database with requests.
  • Console formatting has been overhauled, introducing logo artwork and text coloring.
  • The bot now utilizes sharding.
  • Round results now display when 'trivia admin cancel' is entered.
  • Added config option: use-reactions. This is an optional setting that makes trivia games use reactions rather than typed responses. Currently, this can only be set globally in config.json.
  • Added config option: allow-bots
  • Added config option: prefix
  • Error messages are now more organized and descriptive.
  • [ae3720a] run.bat no-longer waits five seconds on first startup.
  • [52945ac] Fixed the bot accepting trivia commands from other bots. (Can be toggled on or off in config.json)
  • [b060659] Fixed 'trivia admin cancel' not working when entered between rounds.
  • [94173bd] The bot now checks for the required permissions before starting a game.
  • [198f9c1] Fixed broken game state preventing users from starting new games.
  • [6ae7d1d] Fixed games not clearing correctly when errors occur or 'trivia admin cancel' is typed.
  • [f25ff0b] Fixed bot attempting to message itself rather than the user in certain error scenarios.
  • [7c3b55a] Fixed certain players being able to enter multiple answers in the same round.
  • [8e82267] Fixed responsive answer display not working correctly. (Games now adapt better to higher player counts)