Anwarul-Azim / GK_SlackBot

A basic slack bot that can answer questions on general knowledge

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GK SlackBot

GK SlackBot is a simple slack bot written in Go that can answer any question on general knowledge written in English. It uses Wit as the chatbot framework and Wolfram Alpha API for NLP model.

Installation

In order to use this chat bot, you need,

  • A slack workspace
  • A slackbot installed in that workspace with necessary (message read/write) permissions
  • An wit app with "wolfram_search_query" selected as intent
  • Access to wolfram api (app created in developers portal

After completing these prerequisites, get four tokens/ids and set those in the .env file. These are, slack app token, slack bot token, wit ai token and wolfram app id. Also, install all the third party libraries in your directory (check Acknowledgement).

Now the program is ready to fetch question from the bot, prepare the answer and send that again to the bot.

Acknowledgement

Instructions from this freeCodeCamp tutorial was followed for designing this bot.

Used third party libraries are -

The README is created using stackedit.

About

A basic slack bot that can answer questions on general knowledge


Languages

Language:Go 96.0%Language:Shell 4.0%