Skip to content

Описание полей объекта канала

khades edited this page Dec 9, 2017 · 7 revisions

RandomInteger int RandomIntegerIsMinimal bool RandomIntegerIsMaximal bool RandomIngegerIsZero bool RandomString string IsMod bool IsSub bool CommandBody string CommandBodyIsEmpty bool

Функциональные поля

В этих полях лежат данные, которые форматируются перед выдачей в шаблон, других особенностей не имеют, используются так же GetCommands GetGamesHistory GetStreamDuration

Информация о группе VK

type VkGroupInfo struct { GroupName string json:"groupName" NotifyOnChange bool json:"notifyOnChange" LastMessageID int json:"lastMessageID" LastMessageURL string json:"lastMessageURL" LastMessageBody string json:"lastMessageBody" LastMessageDate string json:"lastMessageDate" }

Информация о TwitchDJ канале

type TwitchDJ struct { ID string json:"id" Playing bool json:"playing" Track string json:"track" NotifyOnChange bool json:"notifyOnChange" }

Информация о текущем статусе канале

type StreamStatus struct { Online bool Game string bson:",omitempty" Title string bson:",omitempty" Start time.Time bson:",omitempty" LastOnlineTime time.Time bson:",omitempty" Viewers int bson:",omitempty" GamesHistory GamesHistory bson:",omitempty" }

Clone this wiki locally