Slack Quizbot

A bot who can run customisable quizzes in your Slack channels


Project maintained by codebyfire Hosted on GitHub Pages — Theme by mattgraham

Slack Quizbot

A NodeJS module using Slack's RTM to allow a Slack bot to run quizzes in your Slack channel. There are some quizzes included come included but you can create your own quiz with the Slack Quizbot Quiz Builder

Requirements

Installation

Create a folder and install slackquizbot at that location:

npm install slackquizbot

Create an myquizbot.js file containing the following, adding in your unique bot token:

var QuizBot = require('slackbotquiz');
var myQuizBot = new QuizBot("_YOUR_SLACK_BOT_TOKEN_");

Activate your Quizbot:

node myquizbot.js

Bot Commands

Make sure your bot is present in the channel you want to run the quiz in. All commands will also work in DMs with your bot so you can test these commands privately.

List quizzes

Ask Quizbot to tell you all the available quizzes

@quizbot list quizzes

Start quiz

Start the general knowledge quiz

@quizbot start quiz gk

Answering questions

Whenever a question is active Quizbot will search for any matching answers automatically

Pause quiz

To pause a quiz for any reason

@quizbot pause quiz

Resume quiz

Resume a paused quiz

@quizbot resume quiz

Stop quiz

To prematurely stop a quiz

@quizbot stop quiz

Create your own quizzes

You can create your own quizzes using the Slack Quizbot Quiz Builder. Once you've downloaded your JSON file, you can use it by either directly placing the file in a local folder called 'ata' or in Slack you can upload the file in a DM to your bot.