@model vassago.Models.Configuration @using Newtonsoft.Json; @using vassago.Behavior; @using vassago.TwitchInterface; @using System.Text; home/configuration
@{ if(Model.DiscordTokens != null) for(var i = 0; i < Model.DiscordTokens.Count; i++) { } } @{ if(Model.TwitchConfigs != null) for(var i = 0; i < Model.TwitchConfigs.Count; i++) { var tc = JsonConvert.DeserializeObject(Model.TwitchConfigs[i]); } } @{ if(Model.Webhooks != null) for(var i = 0; i < Model.Webhooks.Count; i++) { if(Model.Webhooks[i] == null) continue; Console.WriteLine(Model.Webhooks[i]); var wh = JsonConvert.DeserializeObject(Model.Webhooks[i]); if(wh == null) continue; var sb = new StringBuilder(); if(wh.Headers != null) foreach(var header in wh.Headers) { sb.Append($"{header[0]}:"); if(header.Count == 2) sb.Append(header[1]); sb.AppendLine(); } } }
Discord (@(Model?.DiscordTokens?.Count ?? 0) accounts)
Twitch (@(Model?.TwitchConfigs?.Count ?? 0) accounts)
Webhooks
Are you sure?
username: oauth:
Are you sure?
trigger Uri Method Headers Content Description
Are you sure?
@section scripts{ }