Skip to content
This repository was archived by the owner on Jun 12, 2026. It is now read-only.

Latest commit

History

24 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Bot

Migrated to GitLab

This package has been migrated to gitlab.com/foresthoffman/bot. For any further updates beyond what is shown in the tutorial blog mentioned below, you can go get gitlab.com/foresthoffman/bot instead.


The bot package provides a set of functions that control a basic Twitch.tv chat bot. The package also exposes an interface which can be used to create a custom chat bot. See the following series for a step-by-step tutorial on Building a Twitch.tv Chat Bot with this package.

Installation

Run go get github.com/foresthoffman/bot

Importing

Import this package by including github.com/foresthoffman/bot in your import block.

e.g.

package main
import(
..."github.com/foresthoffman/bot"
)

Usage

Basic usage:

package main
import (
"github.com/foresthoffman/bot""time"
)
funcmain() {
// Replace the channel name, bot name, and the path to the private directory with your respective// values.myBot:= bot.BasicBot{
Channel: "twitch",
MsgRate: time.Duration(20/30) *time.Millisecond,
Name: "TwitchBot",
Port: "6667",
PrivatePath: "../private/oauth.json",
Server: "irc.chat.twitch.tv",
}
myBot.Start()
}

That's all, enjoy!

About

A Go package for building Twitch.tv IRC chat bots. Previously "twitchbot".

Topics

Resources

Stars

25 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages