hqtrivia
Version, currently 0.7.118 versions
- 0.7.1latestApr 13, 2021
- 0.7.0not indexedApr 13, 2021
- 0.6.0not indexedApr 13, 2021
- 0.5.0not indexedApr 13, 2021
- 0.4.0not indexedApr 13, 2021
- 0.3.0not indexedApr 13, 2021
- 0.2.9not indexedApr 13, 2021
- 0.2.8not indexedApr 13, 2021
- 0.2.7not indexedApr 13, 2021
- 0.2.6not indexedApr 13, 2021
- 0.2.5not indexedApr 13, 2021
- 0.2.4not indexedApr 13, 2021
- 0.2.3not indexedApr 13, 2021
- 0.2.2not indexedApr 13, 2021
- 0.2.1not indexedApr 13, 2021
- 0.2.0not indexedApr 13, 2021
- 0.1.1not indexedApr 13, 2021
- 0.1.0not indexedApr 13, 2021
github.com/taylorfinnell/hqtrivia
Framework for creating HQ Trivia bots
2 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
hqtrivia:
github: taylorfinnell/hqtrivia
version: ~> 0.7.1Then run:
shards installshard.yml
- Crystal
>= 0.32.0- License
- MIT
- Author
- Taylor Finnell
Dependencies
Runtime Dependencies
- retrycr*github: taylorfinnell/retrycr
- json_mapping*github: crystal-lang/json_mapping.cr
README
hqtrivia
A small framework for building HQ Trivia and HQ Words bots.
Installation
Add this to your application's shard.yml:
dependencies:
hqtrivia:
github: taylorfinnell/hqtrivia
Usage
require "hqtrivia"
class WordFrequencyBot
include HqTrivia::Bot
getter words
@words = {} of String => Int32
def handle_message(message : HqTrivia::Model::Interaction)
message.metadata.message.split(/\s/).each do |word|
@words[word.downcase] ||= 0
@words[word.downcase] += 1
end
end
end
coordinator = HqTrivia::HqCoordinator.new("us")
HqTrivia.on_show(coordinator) do |show|
bot = WordFrequencyBot.new(coordinator)
bot.play
end
HQ Trivia Messages
HqTriva::Model::QuestionHqTriva::Model::QuestionSummaryHqTriva::Model::QuestionFinishedHqTriva::Model::GameSummaryHqTriva::Model::SurveyQuestionHqTriva::Model::SurveyResultsHqTriva::Model::CheckpointHqTriva::Model::CheckpointSummary
HQ Words Messages
HqTriva::Model::ShowWheelHqTriva::Model::HideWheelHqTriva::Model::StartRoundHqTriva::Model::EndRoundHqTriva::Model::WordsGameResult
HQ Heart Messages
HeartEpisodeWinnersHeartFinalistIntroHeartFinalistUploadStatusHeartFinalistUploadUpdateHeartFinalistVoteHeartFinalistWalkthroughHeartPhotoResultsHeartPhotoUploadHeartPhotoVote
Shared Messages
HqTriva::Model::QuestionClosedHqTriva::Model::PostGameHqTriva::Model::InteractionHqTriva::Model::UnknownMessageHqTriva::Model::BroadcastStatsHqTriva::Model::BroadcastEndedHqTriva::Model::Kicked
Contributors
- taylorfinnell Taylor Finnell - creator, maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.7.1- Tagged
- Apr 13, 2021
- Commit
da41e54f9702- Crystal
>= 0.32.0- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/taylorfinnell/hqtrivia
Metadata
- Created
- Sep 5, 2026
- Updated
- Oct 15, 2026
- Synced
- Oct 15, 2026
- Versions
- 18