Example #1
0
 // This function is called on start of bot
 public static void Start()
 {
     while (true)
     {
         foreach (config.channel chan in config.channels)
         {
             if (chan.Keys.update)
             {
                 HtmlDump dump = new HtmlDump(chan);
                 dump.Make();
                 chan.Keys.update = false;
             }
         }
         System.Threading.Thread.Sleep(320000);
     }
 }
Example #2
0
 // This function is called on start of bot
 public override void Load()
 {
     Thread.Sleep(10000);
     while (true)
     {
         foreach (config.channel chan in config.ChannelList)
         {
             if (GetConfig(chan, "HTML.Update", true))
             {
                 HtmlDump dump = new HtmlDump(chan);
                 dump.Make();
                 core.DebugLog("Making dump for " + chan.Name);
                 SetConfig(chan, "HTML.Update", false);
             }
         }
         HtmlDump.Stat();
         Thread.Sleep(320000);
     }
 }
Example #3
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))
             {
                 HtmlDump dump = new HtmlDump(chan);
                 dump.Make();
                 Syslog.DebugLog("Making dump for " + chan.Name);
                 SetConfig(chan, "HTML.Update", false);
             }
         }
         HtmlDump.Stat();
         Thread.Sleep(320000);
     }
 }
Example #4
0
 // This function is called on start of bot
 public override void Load()
 {
     Thread.Sleep(10000);
     while (true)
     {
         lock (config.channels)
         {
             foreach (config.channel chan in config.channels)
             {
                 if (GetConfig(chan, "HTML.Update", true))
                 {
                     HtmlDump dump = new HtmlDump(chan);
                     dump.Make();
                     core.DebugLog("Making dump for " + chan.Name);
                     SetConfig(chan, "HTML.Update", false);
                 }
             }
         }
         HtmlDump.Stat();
         Thread.Sleep(320000);
     }
 }