A modular Twitch bot made in Go
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
witer33 784813fe19
Update go.mod
2 years ago
twitchbot Fixed multiple connect 2 years ago
.gitignore Update .gitignore 2 years ago
LICENSE Initial commit 2 years ago
README.md Fixed multiple connect 2 years ago
go.mod Update go.mod 2 years ago
test.go Initial commit 2 years ago

README.md

twitchbot

Go Twitch Bot Api wrapper, with an easy to use interface.

Example

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()
}