/botkit-spark-worldcuptrivia

World Cup 2018 Trivia Bot for Cisco Spark

Primary LanguageJavaScriptMIT LicenseMIT

botlogo

botkit-spark-worldcuptrivia

license

World Cup 2018 Trivia Bot for Cisco Spark.

Features

Installation

  1. Download the ngrok or tunneling localhost tool i.e. ngrok

  2. Register a Bot Account from the 'Spark for developers' bot creation page, and copy your bot's access token.

  3. Launch ngrok to expose port 3000 of your local machine to the internet:

    ngrok http 3000
    
  4. Edit the .env file and modify the settings to accomodate your bot.

    PORT=3000
    PUBLIC_URL=https://custom-sub-domain.ngrok.io
    SECRET="hiddensecret"
    SPARK_TOKEN=token-received-from-access-token
    
  5. Run the bot and test it.

    git clone https://github.com/diegofn/botkit-spark-worldcuptrivia
    cd botkit-spark-worldcuptrivia
    npm install
    node worldcuptrivia.js

Project resources

Credits