![]() Poorly constructed survey questions are an example of how personal or professional bias can flow into our work, and sometimes, this can alter the outcome of a form or survey and elicit inaccurate results. Everyone has their own unique preferences and opinions, and as much as we might not want them to, those can leak into our professional lives. I've had a ton of fun creating this module and playing it with my friends, and i want it to be a great time for everyone.Bias can sneak up in the most unexpected ways. This module was only tested on Discord and Slack, so I'm not sure how it behaves on other chat clients. If you find a bug, please let me know about it at. Then add hubot-loaded-questions to the external-scripts.json file (you may need to create this file). Run the following command $ npm install hubot-loaded-questions -save ![]() Uses hubot brain to keep track of the game state and some stats. Optionally include a username to see stats for that specific user. ![]() !lqstats - (public or pm) shows some stats about the game.submit answer - (pm only) submits your answer to the question.!guessanswer - (public only) guess that answer number was submitted by user.!printanswers - (public or pm) prints the answers that were given during the round.!endquestion - (public only) ends the round of questioning and displays the answers.!skipquestion - (public only) votes to skips the current question and load a new one.!printquestion - (public or pm) prints the current question.!loadquestion - (public only) starts a new question, if there isn't one currently.You can see several more examples of questions with this random feature in hubot-loaded-questions' res/base_questions.json file. Note that strange-lookin' question object in there. Loaded Questions will find those extra questions and add 'em to the mix! Hubot will ask each question once at random, then shuffle the full list again. ![]() Here's an example of what that might look like: This allows you to add those questions your friends keep asking you to add. More can be added by creating a loaded_questions.json file in the res/ directory at the root of your Hubot project. Loaded Questions comes with a default set of 300 questions. Default is true, but you'll need to play a full round (get through all the questions!) before these start showing up. HUBOT_INCLUDE_RANDOM_ANSWER - whether or not to include a random answer from last round as hubot's answer.HUBOT_LOADED_QUESTIONS_TIMEOUT - how many minutes to wait during the countdown before the round ends.HUBOT_LOADED_QUESTIONS_SKIPNUM - how many users must agree to skip a question before it is skipped.HUBOT_LOADED_QUESTIONS_QUORUM - how many answers to wait for before triggering a countdown to end the round.By default, Hubot will save the ID of the room that it first hears !loadquestion in. HUBOT_LOADED_QUESTIONS_ROOM - which channel name or ID to post messages to (this game can be a little spammy, so it's best to have a dedicated room).Loaded Questions has these configurable values: Once all the answers are guessed, Hubot will wait patiently for the next round!Īfter playing for a while, you can see stats for the game by saying !lqstats, or stats for individual players by saying !lqstats.You can re-print the answers list to see which answers have been guessed so far (or because the list has scrolled way off the screen) by saying !printanswers.As each answer is guessed, Hubot will let you know if you guessed correctly or incorrectly.Users can then optionally guess who submitted each answer by saying !guessanswer or !ga followed by their guess.To guess who submitted an answer, say `!guessanswer `.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |