Documentation ¶
Index ¶
- Constants
- Variables
- func AddEventSubSubscriptionID(tx *sql.Tx, id string) error
- func DeleteEventSubSubscriptionID(tx *sql.Tx, id string) error
- func NewState() (string, error)
- type Author
- func (a Author) Admin() (bool, error)
- func (a Author) BotAdmin() (bool, error)
- func (a Author) DisplayName() (string, error)
- func (a Author) ID() (string, error)
- func (a Author) Mention() (string, error)
- func (a Author) Moderator() (bool, error)
- func (a Author) Name() (string, error)
- func (a Author) Scope() (int64, error)
- func (a Author) Subscriber() (bool, error)
- type Helix
- func (h *Helix) CreateSubscription(broadcasterID, t string) (string, error)
- func (h *Helix) DeleteSubscription(subID string) error
- func (h *Helix) EditChannelInfo(broadcasterID, title, gameID string) (error, error)
- func (h *Helix) GetBannedUser(broadcasterID, userID string) (helix.Ban, error)
- func (h *Helix) GetChannelInfo(broadcasterID string) (helix.ChannelInformation, error)
- func (h *Helix) GetClip(clipID string) (helix.Clip, error)
- func (h *Helix) GetFollower(broadcasterID, userID string) (helix.UserFollow, error)
- func (h *Helix) GetGameName(channelId string) (string, error)
- func (h *Helix) GetStream(broadcasterID string) (helix.Stream, error)
- func (h *Helix) GetTitle(channelId string) (string, error)
- func (h *Helix) GetUser(userID string) (helix.User, error)
- func (h *Helix) GetUserID(username string) (string, error)
- func (h *Helix) IsMod(broadcasterID, userID string) (bool, error)
- func (h *Helix) IsSub(broadcasterID, userID string) (bool, error)
- func (h *Helix) ListSubscriptions() ([]helix.EventSubSubscription, error)
- func (h *Helix) RedeemsList(broadcasterID string) ([]helix.ChannelCustomReward, error)
- func (h *Helix) SearchGame(gameName string) (helix.Game, error)
- func (h *Helix) SetGame(channelID, gameName string) (string, error, error)
- func (h *Helix) SetTitle(channelID, title string) (error, error)
- type Here
- type Speaker
- func (s Speaker) AuthorConnected() (bool, error)
- func (s Speaker) AuthorDeafened() (bool, error)
- func (s Speaker) Channels() int
- func (s Speaker) Enabled() bool
- func (s Speaker) FrameRate() int
- func (s Speaker) Join() error
- func (s Speaker) Leave() error
- func (s Speaker) Say(io.Reader, <-chan core.AudioState) error
- type Twitch
- func (t *Twitch) Helix() (*Helix, error)
- func (t *Twitch) Natural(msg any, _ core.Urr) (*core.Message, error)
- func (t *Twitch) Parse() (*core.Message, error)
- func (t *Twitch) Person(id string) (int64, error)
- func (t *Twitch) PersonID(s, _ string) (string, error)
- func (t *Twitch) Ping(msg any, _ core.Urr) (*core.Message, error)
- func (t *Twitch) PlaceID(s string) (string, error)
- func (t *Twitch) QuoteCommand(cmd string) string
- func (t *Twitch) Send(msg any, _ core.Urr) (*core.Message, error)
- func (t *Twitch) Write(msg any, urr core.Urr) (*core.Message, error)
Constants ¶
View Source
const (
CallbackEventSub = "/twitch/eventsub"
)
View Source
const Type = 1 << 1
Variables ¶
View Source
var ( ErrExpiredRefreshToken = errors.New("the user will need to reconnect the bot to twitch") ErrRetry = errors.New("refresh the access token and try again") ErrNoResults = errors.New("couldn't find what you were looking for") ErrUserTokenRequired = errors.New("this channel's broadcaster must connect their twitch account to the bot") )
View Source
var ( Admins []string ClientID string ClientSecret string )
View Source
var Frontend = &frontend{}
Functions ¶
Types ¶
type Author ¶
type Author struct {
// contains filtered or unexported fields
}
Author implements both the core.Personifier interface.
func (Author) DisplayName ¶
func (Author) Subscriber ¶
type Helix ¶
type Helix struct {
// contains filtered or unexported fields
}
func (*Helix) CreateSubscription ¶
func (*Helix) DeleteSubscription ¶
func (*Helix) EditChannelInfo ¶
func (*Helix) GetBannedUser ¶
func (*Helix) GetChannelInfo ¶
func (*Helix) GetFollower ¶
func (*Helix) ListSubscriptions ¶
func (*Helix) RedeemsList ¶
func (*Helix) SearchGame ¶
type Here ¶
type Here struct { RoomID string RoomName string Author core.Personifier // contains filtered or unexported fields }
func (Here) ScopeExact ¶
func (Here) ScopeLogical ¶
type Speaker ¶
type Speaker struct{}
func (Speaker) AuthorConnected ¶
func (Speaker) AuthorDeafened ¶
Click to show internal directories.
Click to hide internal directories.