Exemplo n.º 1
0
 private async void OnTwitchSubGift(BotChannel bChan, TwitchSubGiftEventArguments e)
 {
     if (bChan.discordAdminChannel > 0)
     {
         await SayOnDiscordAdmin(bChan, $"{e.userDisplayname} gave {e.recipientDisplayname} a {e.subscriptionplanName}.");
     }
 }
Exemplo n.º 2
0
 internal async void RaiseTwitchOnSubGift(BotChannel bChan, TwitchSubGiftEventArguments args)
 {
     await Task.Run(() => {
         if (bChan != null)
         {
             OnTwitchSubGift?.Invoke(bChan, args);
         }
         if (Program.Debugmode)
         {
             Core.LOG(new LogEntry(LOGSEVERITY.INFO, "EVENTS", args.LogString));
         }
     });
 }