GelotvBot.LiveDiscovery (GeloTVBot v0.1.0)

Copy Markdown View Source

Discovers active livestream chats and converts them into GelotvBot.Targets.

Summary

Types

spec()

@type spec() :: %{
  :platform => :twitch | :youtube | :kick,
  optional(:channels) => [String.t()],
  optional(:credentials) => map(),
  optional(:opts) => keyword()
}

Functions

discover(specs, opts \\ [])

@spec discover(
  [spec()],
  keyword()
) :: {:ok, [GelotvBot.Target.t()]} | {:error, term()}

discover_one(spec, opts)

@spec discover_one(
  spec(),
  keyword()
) :: {:ok, [GelotvBot.Target.t()]} | {:error, term()}