module HqTrivia::Bot

Overview

The HqTrivia bot, given a connection it has call backs for messages received

Defined in:

hqtrivia/bot.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(coordinator : Coordinator) #

[View source]

Instance Method Detail

def country #

The country that is playing this game


[View source]
def game_type #

The type of game, currently "trivia" or "words"


[View source]
def play(connection : HqTrivia::Connection::Interface) #

Play the game on the given connection


[View source]
def prize #

The prize of the current show, nil if no show is going


[View source]
def show_id #

The id of the current show, nil if no show is going


[View source]
def start_time #

The start time of the current show, nil if no show is going


[View source]