コード例 #1
0
ファイル: DumpHtm.cs プロジェクト: IcanCheung/mediawiki-svn
 // 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);
     }
 }
コード例 #2
0
ファイル: HtmlDump.cs プロジェクト: MatmaRex/wikimedia-bot
 // 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);
     }
 }
コード例 #3
0
ファイル: HtmlDump.cs プロジェクト: johnduhart/wikimedia-bot
 // 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);
     }
 }
コード例 #4
0
ファイル: HtmlDump.cs プロジェクト: reedy/wikimedia-bot
 // 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);
     }
 }