// 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); } }
// 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); } }