Giter Club home page Giter Club logo

hubot-trivia-game's People

Contributors

natgaertner avatar sausyn avatar seangibat avatar yincrash avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

hubot-trivia-game's Issues

Errors when trying to use this script.

When the bot comes online we issue

!trivia

you get this error the first time always.

'''
[Mon Nov 10 2014 10:54:35 GMT-0800 (PST)] ERROR ReferenceError: robot is not defined
at Game.askQuestion (/PATHANDSTUFF//hipbot/node_modules/hubot-trivia-game/src/trivia-game.coffee:42:7, :26:9)
at TextListener.callback (/PATHANDSTUFF//hipbot/node_modules/hubot-trivia-game/src/trivia-game.coffee:91:5, :86:19)
at TextListener.Listener.call (/PATHANDSTUFF//hipbot/node_modules/hubot/src/listener.coffee:27:7, :23:14)
at Robot.receive (/PATHANDSTUFF//hipbot/node_modules/hubot/src/robot.coffee:197:9, :142:33)
at HipChat.Adapter.receive (/PATHANDSTUFF//hipbot/node_modules/hubot/src/adapter.coffee:66:5, :47:25)
at /PATHANDSTUFF//hipbot/node_modules/hubot-hipchat/src/hipchat.js:206:24
at invokeCallback (/PATHANDSTUFF//hipbot/node_modules/hubot-hipchat/node_modules/rsvp/node/rsvp.js:161:15)
at Object. (/PATHANDSTUFF//hipbot/node_modules/hubot-hipchat/node_modules/rsvp/node/rsvp.js:193:9)
at /PATHANDSTUFF//hipbot/node_modules/hubot-hipchat/node_modules/rsvp/node/rsvp.js:13:16
at process._tickCallback (node.js:419:13)
'''

Second time you issue the command it works.

Attempting to answer with !a or !answer you get the following error

[Mon Nov 10 2014 10:54:50 GMT-0800 (PST)] ERROR TypeError: Cannot call method 'toLowerCase' of undefined
at Game.answerQuestion (/PATHANDSTUFF//hipbot/node_modules/hubot-trivia-game/src/trivia-game.coffee:63:10, :48:67)
at TextListener.callback (/PATHANDSTUFF//hipbot/node_modules/hubot-trivia-game/src/trivia-game.coffee:97:5, :92:19)
at TextListener.Listener.call (/PATHANDSTUFF//hipbot/node_modules/hubot/src/listener.coffee:27:7, :23:14)
at Robot.receive (/PATHANDSTUFF//hipbot/node_modules/hubot/src/robot.coffee:197:9, :142:33)
at HipChat.Adapter.receive (/PATHANDSTUFF//hipbot/node_modules/hubot/src/adapter.coffee:66:5, :47:25)
at /PATHANDSTUFF//hipbot/node_modules/hubot-hipchat/src/hipchat.js:206:24
at invokeCallback (/PATHANDSTUFF//hipbot/node_modules/hubot-hipchat/node_modules/rsvp/node/rsvp.js:161:15)
at Object. (/PATHANDSTUFF//hipbot/node_modules/hubot-hipchat/node_modules/rsvp/node/rsvp.js:193:9)
at /PATHANDSTUFF//hipbot/node_modules/hubot-hipchat/node_modules/rsvp/node/rsvp.js:13:16
at process._tickCallback (node.js:419:13)

Your help is appreciated as we really want trivia:P

Trivia Game encounters an error on answers.

Issue Description:

Trivia Game encounters an error when a user attempts to answer a question. This has been happening since yesterday (March 6th, 2018), around midday. Here is an example of the log message:
[Wed Mar 07 2018 12:08:06 GMT-0600 (CST)] ERROR undefined

Expected Behavior:

Trivia Game responds to answers by awarding points if the answer is correct, or by telling the user that the answer is incorrect.

Version:

v1.0.8

Environment:

Slack

Prereq(s):

Jeopardy Questions file is downloaded from the following URL, and placed in res/questions.json http://www.reddit.com/r/datasets/comments/1uyd0t/200000_jeopardy_questions_in_a_json_file

Steps to Reproduce:

  1. Launch hubot with hubot-loaded-questions installed and added to the external_scripts.json file.
  2. Begin a trivia game by saying !trivia
  3. Attempt to answer the question by saying !a answer
  4. Observe there no response from hubot.
  5. Observe there is the message ERROR undefined in the logs.

be able to set a timer

like after 30 seconds it just gives the answer and moves to the next question

something like "!t 30" would set a 30 second timer

Score is always $0 for the user

The score is always $0 even after the user answers a question correctly. Any idea what I'm doing wrong ?

HipChat Bot 10:55 AM 
Answer with !a or !answer
For $1600 in the category of BACK IN 1906:
'In 1906 there were 90 of these; nearly two-thirds of them were Republican'

Tom Alexander 10:55 AM
!a senators

HipChat Bot 10:55 AM
@TomA YOU ARE CORRECT!!1!!!111!! The answer is senators
@TomA Score: 1600

Ravikiran Janardhana 10:55 AM
!score Tom Alexander
HipChat Bot 10:55 AM
Tom Alexander - $0

Multiple combinations of scores appear on !scores

Using on slack.

I get 11 messages from hubot each time I use !scores. It looks like in the first message, it lists the first member of my Slack, then in the second, it lists the first and second member, then in the third it lists the first second and third member, and so on until there are 11 messages with the final message showing everyone and the score. What's up with that?

fails to start

Causes hubot to fail at startup with the following error:

ERROR Unable to load /home/****/*****/node_modules/hubot-trivia-game/src/trivia-game: SyntaxError: Unexpected token , in JSON at position 109 at JSON.parse (:null:null)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.