discord-trivia

Easily implement trivia games with your Discord.JS

MIT License

Downloads
115
Stars
3
Committers
3

Bot releases are visible (Hide)

discord-trivia -

Published by Elitezen 7 months ago

3.0.2

  • Additional bug fixes to answer checking.
discord-trivia - 3.0.1

Published by Elitezen 7 months ago

3.0.1

  • Fixed a bug which caused any non-first correct answers to be counted as incorrect.
  • Fixed a bug where games that timedout in queue were not deleted by the manager.
  • The GameEmbeds#leaderboardUpdate() function's parameters have changed to (leaderboard: Collection<string, Player>, lastQuestion: GameQuestion)
discord-trivia - 3.0.0 Latest Release

Published by Elitezen 8 months ago

discord-trivia - 2.0.3

Published by Elitezen over 1 year ago

discord-trivia - 2.0.0

Published by Elitezen over 1 year ago

2.0.0

  • Removed TriviaCommandBuilder as it's usage was verbose. I am waiting for Discord to allow implementation of select menus into modals to create a successor.

  • TriviaGame.start() has been renamed to TriviaGame.setup()

  • Configuration of a TriviaGame is now done through:

    • game.decorate(options: DecorationOptions)
    • game.setQuestionOptions(options: Omit<GameQuestionOptions, "customQuestions">)
    • game.setGameOptions(options: Partial<GameOptions>)
    • Option names containing "maximum" or "minimum" have been reduced to "max" and "min"
  • Adding custom questions is now done through game.setCustomQuestions(questions: ( CustomQuestion<QuestionTypes> | BooleanQuestion | MultipleChoiceQuestion )[])

  • Package now uses open-trivia-db 2.1.5 which has reverted back to node-fetch@2 to support NodeJS < 18

  • Editing the game's output messages can now be done through game.setGameTexts(options: Partial<GameOptions>)

  • Trivia games now automatically move on to the next step once the queue has filled up or everyone has answered

  • You can now edit the following using game.decorate():

    • Button styles
    • Embed thumbnail
  • Custom questions can now be created with the CustomQuestionBuilder.Boolean() and CustomQuestionBuilder.Multiple() classes

  • This package now "echoes" CategoryNames, QuestionDifficulties, and QuestionTypes from open-trivia-db for usage in discord-trivia

  • Trivia games no longer send a new message after every user interaction. Embeds will now update to reflect any new data

  • Updated to latest versions of discord.js, open-trivia-db, and discord-api-types

discord-trivia - 1.2.0

Published by Elitezen about 2 years ago

v14 Update