Skip to content

mk2/idobot

Repository files navigation

What is this?

  • Tool for making idobata bot by Go.

How to use this?

  1. import this library
import "github.com/mk2/idobot"
  1. initialize idobot
var onStart = func(bot idobot.Bot, msg *SeedMsg) {
 // do anything on initial message receiving.
}

var onEvent = func(bot idobot.Bot, msg *EventMsg) {
 // do anything on each event message receiving.
}

// generate idobot by some settings.
bot, err := idobot.NewBot(idobataUrl, idobataApiToken, userAgent, onStart, onEvent)

// start bot
bot.Start()

About

Make idobata bot by Go

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages