chatbot

package
v1.9.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 2, 2022 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Uptime time.Time

Functions

func AnnounceNewFollower

func AnnounceNewFollower(username string)

AnnounceNewFollower makes a post in chat that a user follows the channel

func AnnounceSubscriber

func AnnounceSubscriber(sub helix.Subscription)

AnnounceSubscriber makes a post in chat that a user has subscribed

func Chatter

func Chatter()

Chatter is designed to post a randomized message on a timer. Right now it just posts random "help messages."

func GetWhisper

func GetWhisper(message twitch.WhisperMessage)

if the message comes from me, then post the message to chat TODO: log to stackdriver

func Initialize

func Initialize() *twitch.Client

Initialize returns a Twitch client struct with all of the various configuration in place.

func PrivateMessage

func PrivateMessage(msg twitch.PrivateMessage)

handles all chat messages

func Say

func Say(msg string)

Say will make a post in chat

func UserJoin

func UserJoin(joinMessage twitch.UserJoinMessage)

this event fires when a user joins the channel

func UserPart

func UserPart(partMessage twitch.UserPartMessage)

this event fires when a user leaves the channel

func Whisper

func Whisper(username, msg string)

Whisper will whisper a message to a user

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL