Skip to content

msbrime/slackbot

 
 

Repository files navigation

Slackbot

Introduction

A simple slackbot for the DevCongress slack, which does tasks including:

  • welcome new members
  • greet in the morning and night
  • forex echange to GH¢ e.g. @botname convert 20 euros or @botname convert $30
  • Define common Englih words e.g. @botname define fire or @botname What is the meaning of marketing

Teaching the bot new tricks

  • Read the Contribution Guide.
  • Open your terminal and run npm run generate, follow the prompts to scaffold the required files.
  • Replace the scaffolded code with your own
  • Submit a PR

Find relevant documentation at Botkit and Slack API

Installation

Clone the repository

git clone https://github.com/devcongress/slackbot

Go to your terminal and navigate to the directory you cloned the code to and run

npm install

Run the Bot:

Get a Bot token from Slack:

http://my.slack.com/services/new/bot

Run your bot from the command line:

token=<MY TOKEN> node index.js

The bot is written with botkit which you can learn more about it here http://howdy.ai/botkit

License

This project is licensed under the MIT license.

About

A slackbot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%