Beispiel #1
0
 internal void RequestUpdate(SuiBot_ChannelInstance instance)
 {
     GetStatus();
     if (game != string.Empty)
     {
         instance.SendChatMessage("New isOnline status is - \'" + isOnline.ToString() + "\' and the game is: " + game);
     }
     else
     {
         instance.SendChatMessage("New isOnline status is - " + isOnline.ToString());
     }
 }
Beispiel #2
0
        public TwitchStatusUpdate(SuiBot_ChannelInstance suiBot_ChannelInstance, string oauth)
        {
            RequestHeaders   = new Dictionary <string, string>();
            this.channelName = suiBot_ChannelInstance.Channel;
            sUrlTwitchStatus = new Uri("https://api.twitch.tv/helix/streams?user_login="******"tezur0";
            sUrlTwitchStatus = new Uri("https://api.twitch.tv/helix/streams?user_login="******"Client-ID", "rmi9m0sheo4pp5882o8s24zu7h09md");
            RequestHeaders.Add("Authorization", "Bearer " + oauth);
        }