Minimal Example

The simplest chat bot listens for messages on a chat Adapter and then executes a Handler function if it sees a message directed to the bot that matches a given pattern.

For example a bot that responds to a message “ping” with the answer “PONG” looks like this:

package main

import ""

func main() {
	b := joe.New("example-bot")
	b.Respond("ping", Pong)

	err := b.Run()
	if err != nil {

func Pong(msg joe.Message) error {
	return nil