Skip to content

Nirespire/twitchbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twitchbot GO

Livecoding a Twitchbot at https://twitch.tv/nirespire

Following the tutorial here: https://dev.to/foresthoffman/building-a-twitchtv-chat-bot-with-go---part-1-i3k

Setup

  1. Generate OAuth credentials for twitch IRC authentication
  2. Copy OAuth token into oauth.json.template and rename to oauth.json
  3. Set appropriate configs in main.go
chatConfig := types.ChatConfig{
	ProjectDescription: "Currently working on a twitch chatbot using GOLANG.",
}

myBot := bot.TwitchBot{
		Channel:     "your_channel_name(lowercase)",
		MsgRate:     time.Duration(20/30) * time.Millisecond,
		Name:        "SomeBotName",
		Port:        "6667",
		PrivatePath: "oauth.json",
		Server:      "irc.chat.twitch.tv",
		ServerPort:  ":8080",
		ChatConfig:  chatConfig,
	}
  1. go install
  2. run twitchbot

About

Bot that interacts with Twitch stream chat

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages