Twitch Trivia Game

Are you ready to put your knowledge to the test? :brain::sparkles:
Welcome to the Twitch Trivia Game! A fun, interactive way to challenge yourself and compete with others in topics ranging from history and science to pop culture and beyond!
With :zap: Blitz Trivia for fast-paced action and an engaging leaderboard to track your progress, this game is the ultimate trivia showdown! :trophy:
Gather your wits, sharpen your mind, and let’s see who comes out on top! :tada:
â €


Features

:bulb: Dynamic Question Categories: Various topics like history, science, pop culture, and more!
:dart: :zap: Blitz Trivia: A fast-paced mode where the first correct answer wins, offering more points as reward! (10% chance to appear)
:moneybag: Reward System: Earn points and climb the leaderboard with every correct answer!
:books: Customizable: Questions can be tailored to any difficulty, category or type!
:fireworks: Interactive Leaderboard: Track your trivia progress and compete against others for the top spot! With manual and automated reset options!
:snowflake: Custom Cooldown Messages: You people are going crazy on the game? Let them cool down a bit with fancy custom messages and let them know, when the time is come to play again!
â €


Import File

:inbox_tray: TwitchTriviaGame.sb (24.2 KB)


Commands

Command Example Description Additional Description
!ttg / !twitchtriviagame Start a new trivia game with a random question.
!twitchtriviastats / !ttgstats Check your personal stats Separate stats for normal and blitz trivias
!twitchtrivialeaderboard / !ttgleaderboard Leaderboard of the 5 best players. Shows your personal stats additionally if you’re not in the top 5 Separate stats for normal and blitz trivias
!resetuser !resetuser @yourName all Available options: all/points/wins/blitzpoints/blitzwins Only broadcaster & moderators
!resetall !resetall all Available options: all/points/wins/blitzpoints/blitzwins Only broadcaster & moderators

How to game

  • Normal trivia: multiple users can win.
  • Blitz-Trivia: only the first and fastest correct answer wins and the game ends immidiately. You will know if you’re wrong :D.
  • Blitz Trivia runs for a fixed 20 seconds.
  • The more difficult the question, the more points you can earn!
  • Blitz Trivia multiply the awarded points with a defined number x.
    â €

Installation

:warning: Prerequisite: Ensure you have a working point system in your setup before using this script.

  1. Import the script file into Streamer.bot (SB).

  1. Activate all commands

  1. Edit settings.

  1. Start playing and let the trivia fun begin! :tada:

Additional Options

You can edit the cooldown messages to have a more unique approach. Also you have the option to change the chat appearance in most of the actions


Changelog

Hotfix v2.2

Core Script:

  • Prevent running into twitch rate limit in crowded chats because of unnecessary API Call spam (thx for the headsup @tawmae :herz: )
  • Added allowBots as an true/false argument in General - Settings if you want to use your bot account for the game.
  • Added knownBots in General - Settings, now you can add or remove external bots if there is an issue

Leaderboard & Personal Stats:

  • Added knownBots in General - Settings, now you can add or remove external bots if you don’t want them to be listet in the Top5.

Leaderboard & Personal Stats - Reset:

  • Removed some unnecessary args
Older Changelogs

v2.1

  • Fixed: users could answer multiple times and getting multiple points for it while the game was still running in both normal and blitz trivia
  • Took the chance and added some fancy emotes to some leaderboard messages

v2

  • Removed the WIP GER edition. Seems like the API never had any progress and is dead (sadly). So, instead of wasting more time in a dead end, i decided to get rid of it.

  • Core Action:

    • Reworked the english core script sub-actions to be (hopefully) a little more engaging.
    • Details like “category” and “difficulty” now can be hidden. (i decided to keep the Blitz message because its a complete different mechanic and people should be aware of it).
    • You now can decide which account (broadcaster or bot) sends messages and added safety fallback.
    • Rearranged Groups and their content.
    • If a user wins, now the win message comes before the award message.
    • The difficulty level is now taken into account in the reward (starting with “medium” from * 1.25 - 2).
    • Logs now start with the tag [TTG] to be more visible.
    • Blitz and normal trivia now have separated “x time left to answer” reminder.
  • Leaderboard & Personal Stats

    • Leaderboard didn’t got much love besides some new emotes.
  • new Leaderboard & Stats - Reset Settings

    • TTG now features a new Action that gives you and your mods the possibility to reset Wins & Points of normal and blitz TTG rounds from all or specific users.
    • You can either manually reset the points/wins or you can use the Automated Reset - Settings to reset your desired type (all/points/wins/blitzpoints/blitzwins) every desired amount of months.
  • new Custom cooldown messages for TTG

    • Respond with unique cooldown messages for global and user cooldowns.
    • Placeholders can be used to tag a user directly and show the remaining waiting time.

TTG may not be compatible with the newest alpha of SB!
If you’re updating from an older version, restard SB to avoid misbehavior!

v1.2

  • Blitz-Trivia now fully working again, it was broken for some reason in v1.1 in both languages.
  • With blitzChance you can adjust the percentage of blitz-trivia happening in both languages.
  • Trimmed the initial message for blitz-trivia in both languages.