0.0.2 • Published 7 years ago

teambot-hello v0.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

TEAMBOT-HELLO

Slack Channel

This is a sample hello world skill for Teambot. Its main purpose is to show how easy is skill development for Teambot. There are few rules that the Teambot skill developers need to follow and that's it:

  • The skill entry point is index.js
  • index.js should exports a function that takes 2 arguments:
    • controller
    • middleware

Both arguments comes from Botkit so you have the entire set of Botkit features in place.

  • index.js contains mapping between patterns and methods. In this way when Teambot receives a message that contains the defined pattern, its corresponding method will be called. More detaile can be found in Botkit documentation.
  • In order to have well structured Teambot skill the methods that are mapped to patterns could be in separate file(s).
  • Every file should export function that takes 1 argument - controller
  • Every method that is mapped to a pattern should takes 2 arguments: bot and message