// Write your own bot scripts and functions in this file.
// Run "Compile & Run.bat" file - it will compile this file as executable and launch it.
// Compiled XML autodocumentation for DotNetWikiBot namespace is available as "Documentation.chm".
using System;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections;
using System.Xml;
using DotNetWikiBot;

class MyBot : Bot
{
    /// The entry point function. Start coding here.
    public static void Main()
    {
        // Here are some code examples:

        Site enWP = new Site("http://en.wikipedia.org", "HermesBot", "PASSWORDHERE");
        PageList pl = new PageList(enWP);
        pl.FillFromAllPageLinks("User:HermesBot/list");
        pl.Load();
        pl.RemoveTemplate("European Union");
        pl.SaveSmoothly(3, "removing template per [[WP:BOTREQ|request]]", false);
        Console.WriteLine("Done");
    }
}