diff --git a/README.md b/README.md index cf08903..6c28a47 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,25 @@ # twitchbot Go Twitch Bot Api wrapper, with an easy to use interface. + +# Example +```go +package main + +import ( + "twitch/twitchbot" +) + +func main() { + + bot := twitchbot.NewBot("oauth:abcdef", "mybot", []string{"channel"}) + + bot.OnMessage(func(bot *twitchbot.Bot, message *twitchbot.Message) { + if message.Message == "!ping" { + message.Reply("pong") + message.Delete() + } + }) + + bot.Run() +} +```