private Program()
        {
            ConnectionDetails condetails = new ConnectionDetails();
            condetails.ReadConfigFile();

            m_Client = new Irc();
            m_Client.SetConnectionDetails(condetails);
            m_Client.SetChannelMessageHandler(onMessage);
            m_Client.Connect();
            ConnectionDetails cd = new ConnectionDetails();
            cd.ReadConfigFile();
            // this will break...
            TwitchIRC.WebApi.WebApiRequest.Instance.SetChannelDetails("mrgalski", cd.Password, new TwitchIRC.WebApi.Channels.Channel()
            {
                status = "test from the API",
                delay = 0,
                game = "Programming"
            });
            TwitchIRC.WebApi.WebApiRequest.Instance.GetChannelInfo(cd.Password);
        }
Beispiel #2
0
 /// <summary>
 /// Used to set the Irc client that will be used
 /// to send messages to the Irc
 /// </summary>
 /// <param name="client">Irc that you want to use to send messages with</param>
 public void SetIrcClient(Irc client)
 {
     this.m_IrcClient = client;
 }