예제 #1
0
 // This function is called on start of bot
 public override void Load()
 {
     Thread.Sleep(10000);
     while (true)
     {
         foreach (Channel chan in Configuration.ChannelList)
         {
             if (GetConfig(chan, "HTML.Update", true))
             {
                 DebugLog("Making dump for " + chan.Name);
                 HtmlDumpObj dump = new HtmlDumpObj(chan);
                 dump.Make();
                 SetConfig(chan, "HTML.Update", false);
             }
         }
         HtmlDumpObj.Stat();
         Thread.Sleep(320000);
     }
 }
예제 #2
0
 // This function is called on start of bot
 public override void Load()
 {
     Thread.Sleep(10000);
     while (true)
     {
         foreach (Channel chan in Configuration.ChannelList)
         {
             if (GetConfig(chan, "HTML.Update", true))
             {
                 HtmlDumpObj dump = new HtmlDumpObj(chan);
                 dump.Make();
                 Syslog.DebugLog("Making dump for " + chan.Name);
                 SetConfig(chan, "HTML.Update", false);
             }
         }
         HtmlDumpObj.Stat();
         Thread.Sleep(320000);
     }
 }