Exemple #1
0
 //botStart
 public void startBot()
 {
     conf.oauth = "oauth:" + auth;
     conf.nick = "harubot";
     conf.port = 6667;
     conf.channel = "#jahvahn";
     conf.server = "irc.twitch.tv";
     conf.debug = false;
     conf.joined = false;
     bot = new IRCBot(conf);
     bot.startUp();
     bot.Connect();
 }
Exemple #2
0
 private void startBotDebug()
 {
     conf.oauth = "oauth:" + auth;
     conf.nick = "hail_zaros";
     conf.port = 6667;
     conf.channel = "#hail_zaros";
     conf.server = "irc.twitch.tv";
     conf.debug = true;
     conf.joined = false;
     bot = new IRCBot(conf);
     bot.startUp();
     bot.Connect();
     //bot.IRCWork();
 }
Exemple #3
0
 private void metroTile4_Click(object sender, EventArgs e)
 {
     conf.channel = "#jahvahn";
     bot = new IRCBot(conf);
     int _enabled = 1, _level = 0;
     bool _work;
     if (!metroCheckBox3.Checked)
         _enabled = 0;
     if (metroCheckBox2.Checked)
         _level = 1;
     if (metroRadioButton1.Checked)
     {
         _work = bot.addCom(conf.channel, this.metroTextBox7.Text, this.metroTextBox8.Text, _enabled, _level, Int32.Parse(this.metroTextBox6.Text));
         if (_work)
             this.metroLabel16.Text = "Command " + this.metroTextBox8.Text + " added";
         else
             this.metroLabel16.Text = "Unable to add command " + this.metroTextBox8.Text;
     }
     else if (metroRadioButton2.Checked)
     {
         _work = bot.updCom(conf.channel, this.metroTextBox7.Text, this.metroTextBox8.Text, _enabled, _level, Int32.Parse(this.metroTextBox6.Text));
         if (_work)
             this.metroLabel16.Text = "Command " + this.metroTextBox8.Text + " updated";
         else
             this.metroLabel16.Text = "Unable to update command " + this.metroTextBox8.Text;
     }
     else if (metroRadioButton3.Checked)
     {
         _work = bot.delCom(conf.channel, this.metroTextBox8.Text);
         if (_work)
             this.metroLabel16.Text = "Command " + this.metroTextBox8.Text + " deleted";
         else
             this.metroLabel16.Text = "Unable to delete command " + this.metroTextBox8.Text;
     }
 }