Documentation
¶
Index ¶
- func CheckDatesAnnounceable(ctx context.Context, service service.Service, ...) bool
- func CheckIfTwitchStreamerExist(ctx context.Context, twitchUsername string, uInfo *models.TwitchUserInfo, ...) (string, bool)
- func CheckLiveStreams(s *discordgo.Session, ctx context.Context, service service.Service, ...)
- func DeleteServerFromData(serverId string) bool
- func DeleteStreamerFromData(serverId, username string) bool
- func FormatContent(str string, sd models.TwitchStreamerData) string
- func GetStreamAnnoContent(ctx context.Context, service service.Service, guildId, streamerUserId string) string
- func GetStreamersData(serverId string) map[string]GuildStreamers
- func GetTwitchUserInfo(twitchUsername string, token string) (string, *models.TwitchUserInfo)
- func InitStreamersData(ctx context.Context, service service.Service, guildId string)
- func SetStreamerData(serverId, twitchUserId, twitchUserName, discordChannelId string)
- func SetTwitchStreamer(ctx context.Context, uInfo *models.TwitchUserInfo, ...) string
- func StartCheckLiveStreams(s *discordgo.Session, ctx context.Context, service service.Service, ...)
- func StopCheckLiveStreams(guildId string)
- type GuildStreamers
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckDatesAnnounceable ¶
func CheckLiveStreams ¶
func DeleteServerFromData ¶
func DeleteStreamerFromData ¶
func FormatContent ¶
func FormatContent(str string, sd models.TwitchStreamerData) string
func GetStreamAnnoContent ¶
func GetStreamersData ¶
func GetStreamersData(serverId string) map[string]GuildStreamers
func GetTwitchUserInfo ¶
func GetTwitchUserInfo(twitchUsername string, token string) (string, *models.TwitchUserInfo)
func InitStreamersData ¶
func SetStreamerData ¶
func SetStreamerData(serverId, twitchUserId, twitchUserName, discordChannelId string)
func SetTwitchStreamer ¶
func StartCheckLiveStreams ¶
func StopCheckLiveStreams ¶
func StopCheckLiveStreams(guildId string)
Types ¶
type GuildStreamers ¶
Click to show internal directories.
Click to hide internal directories.