StrawHat.Twitch v0.0.2 StrawHat.Twitch.IRC.Credentials View Source

Twitch Chat credentials used for authenticating the bot.

Link to this section Summary

Types

t()
  • username: the account (username) that the chatbot uses to send chat messages. This can be your Twitch account. Alternately, many developers choose to create a second Twitch account for their bot, so it's clear from whom the messages originate.
  • password: the token to authenticate your chatbot with Twitch's servers. Generate this with https://twitchapps.com/tmi/ (a Twitch community-driven wrapper around the Twitch API), while logged in to your chatbot account. The token will be an alphanumeric string

Functions

Returns new credentials

Link to this section Types

Link to this type

t() View Source
t() :: %StrawHat.Twitch.IRC.Credentials{
  password: String.t(),
  username: String.t()
}

  • username: the account (username) that the chatbot uses to send chat messages. This can be your Twitch account. Alternately, many developers choose to create a second Twitch account for their bot, so it's clear from whom the messages originate.
  • password: the token to authenticate your chatbot with Twitch's servers. Generate this with https://twitchapps.com/tmi/ (a Twitch community-driven wrapper around the Twitch API), while logged in to your chatbot account. The token will be an alphanumeric string.

Link to this section Functions

Link to this function

new(username, password) View Source
new(String.t(), String.t()) :: %StrawHat.Twitch.IRC.Credentials{
  password: term(),
  username: term()
}

Returns new credentials.