Exemple #1
0
 private async void OnTwitchResub(BotChannel bChan, TwitchReSubArguments args)
 {
     if (bChan.discordAdminChannel > 0)
     {
         await SayOnDiscordAdmin(bChan, $"{args.userDisplayname} resubbed for a total of {args.monthsTotal} months and a streak of {args.monthsStreak} months.");
     }
 }
Exemple #2
0
        internal async Task RaiseTwitchOnReSubscriber(BotChannel bChan, TwitchReSubArguments args)
        {
            await Task.Run(() => {
                if (bChan != null && args != null)
                {
                    OnTwitchReSubscriber?.Invoke(bChan, args);
                }
            });

            await Core.LOG(new LogEntry(LOGSEVERITY.INFO, "EVENTS", $"{args.userDisplayname} resubscribed to channel {bChan.TwitchChannelName}."));
        }