Ejemplo n.º 1
0
 protected PiVoteAction(IrcBot botMethods, VotingClient client, CertificateStorage certificateStorage, IrcEventArgs eventArgs)
 {
     BotMethods = botMethods;
     Client = client;
     CertificateStorage = certificateStorage;
     EventArgs = eventArgs;
 }
Ejemplo n.º 2
0
        internal PokerGame(IrcBot bot, string channel)
        {
            players = new Queue<PokerPlayer>();
            State = GameState.CleanBoard;
            deck = new RandomDeck();
            run = false;

            this.bot = bot;
            this.channel = channel;
        }
Ejemplo n.º 3
0
        public TallyAction(IrcBot botMethods, VotingClient client, CertificateStorage certificateStorage, IrcEventArgs eventArgs)
            : base(botMethods, client, certificateStorage, eventArgs)
        {
            if (eventArgs.Data.MessageArray.Length == 2)
            {
                int votingNumberTemp;

                if (int.TryParse(eventArgs.Data.MessageArray[1], out votingNumberTemp))
                {
                    if (votingNumberTemp >= 0)
                    {
                        votingNumber = votingNumberTemp;
                    }
                }
            }
        }
 public Ut3GlobalStatsPlugin(IrcBot botInstance)
     : base(botInstance)
 {
 }
Ejemplo n.º 5
0
 public QuizPlugin(IrcBot botInstance)
     : base(botInstance)
 {
 }
Ejemplo n.º 6
0
 public AIMLPlugin(IrcBot botInstance)
     : base(botInstance)
 {
 }
Ejemplo n.º 7
0
 public TwitterPlugin(IrcBot botInstance)
     : base(botInstance)
 {
 }
Ejemplo n.º 8
0
 public NntpPlugin(IrcBot botInstance)
     : base(botInstance)
 {
 }
Ejemplo n.º 9
0
        public static void Main(string[] args)
        {
            if (Environment.UserInteractive)
            {
                IrcBot bot;

                if (args.Length > 0)
                {
                    switch (args[0])
                    {
                        case "--install":
                            ManagedInstallerClass.InstallHelper(new[] { Assembly.GetExecutingAssembly().Location });
                            return;
                        case "--uninstall":
                            ManagedInstallerClass.InstallHelper(new[] { "/u", Assembly.GetExecutingAssembly().Location });
                            return;
                        case "--simulator":

                            break;
                        case "--config":
                            Tool.Configure();
                            return;
                        case "--help":
                            return;
                        case "--plugin-command":
                            bot = new IrcBot();
                            var manager = new BotPluginManager(bot, "plugins");
                            manager.StartUp();
                            bot.CallExportedCommand(args[1], string.Concat(args.Skip(2)), manager);
                            manager.ShutDown();
                            return;
                    }
                }
                Tool.RunOnMono();

                do
                {
                    bot = GetBot();

                    if (bot == null)
                    {
                        break;
                    }

                } while (bot.Start());

                Settings.Default.Save();
            }
            else
            {

                try
                {
                    var servicesToRun = new ServiceBase[] { new ServiceEngine { Bot = GetBot() } };
                    ServiceBase.Run(servicesToRun);
                }
                catch (Exception exception)
                {
                    Log.Instance.Log(exception);
                }
            }
        }
Ejemplo n.º 10
0
 public PokerPlugin(IrcBot botInstance)
     : base(botInstance)
 {
 }
Ejemplo n.º 11
0
 public TodoPlugin(IrcBot botInstance)
     : base(botInstance)
 {
 }
Ejemplo n.º 12
0
 public MumblePlugin(IrcBot botInstance)
     : base(botInstance)
 {
 }
Ejemplo n.º 13
0
 public SeenPlugin(IrcBot botInstance)
     : base(botInstance)
 {
 }
 public UrlToTitlePlugin(IrcBot botInstance)
     : base(botInstance)
 {
 }
 public WikipediaPlugin(IrcBot botInstance)
     : base(botInstance)
 {
 }
Ejemplo n.º 16
0
        public static void Main(string[] args)
        {
            if (Environment.UserInteractive)
            {
                IrcBot bot;

                if (args.Length > 0)
                {
                    switch (args[0])
                    {
                    case "--install":
                        ManagedInstallerClass.InstallHelper(new[] { Assembly.GetExecutingAssembly().Location });
                        return;

                    case "--uninstall":
                        ManagedInstallerClass.InstallHelper(new[] { "/u", Assembly.GetExecutingAssembly().Location });
                        return;

                    case "--simulator":

                        break;

                    case "--config":
                        Tool.Configure();
                        return;

                    case "--help":
                        return;

                    case "--plugin-command":
                        bot = new IrcBot();
                        var manager = new BotPluginManager(bot, "plugins");
                        manager.StartUp();
                        bot.CallExportedCommand(args[1], string.Concat(args.Skip(2)), manager);
                        manager.ShutDown();
                        return;
                    }
                }
                Tool.RunOnMono();

                do
                {
                    bot = GetBot();

                    if (bot == null)
                    {
                        break;
                    }
                } while (bot.Start());

                Settings.Default.Save();
            }
            else
            {
                try
                {
                    var servicesToRun = new ServiceBase[] { new ServiceEngine {
                                                                Bot = GetBot()
                                                            } };
                    ServiceBase.Run(servicesToRun);
                }
                catch (Exception exception)
                {
                    Log.Instance.Log(exception);
                }
            }
        }
 public ListVotingsAction(IrcBot botMethods, VotingClient client, CertificateStorage certificateStorage, IrcEventArgs eventArgs)
     : base(botMethods, client, certificateStorage, eventArgs)
 {
 }
Ejemplo n.º 18
0
 public RssPlugin(IrcBot botInstance)
     : base(botInstance)
 {
 }
Ejemplo n.º 19
0
 private static IrcBot GetBot()
 {
     var bot = new IrcBot();
     return bot;
 }
Ejemplo n.º 20
0
 public FileServerPlugin(IrcBot botInstance)
     : base(botInstance)
 {
 }
Ejemplo n.º 21
0
 public FactoidPlugin(IrcBot botInstance)
     : base(botInstance)
 {
 }
 public CalculatorPlugin(IrcBot botInstance)
     : base(botInstance)
 {
 }
Ejemplo n.º 23
0
 public PiVotePlugin(IrcBot botInstance)
     : base(botInstance)
 {
 }
 public ChannelModeratorPlugin(IrcBot botInstance)
     : base(botInstance)
 {
 }
 public WolframAlphaPlugin(IrcBot botInstance)
     : base(botInstance)
 {
 }
 public TranslatePlugin(IrcBot botInstance)
     : base(botInstance)
 {
 }
Ejemplo n.º 27
0
 public RadioPlugin(IrcBot botInstance)
     : base(botInstance)
 {
 }
Ejemplo n.º 28
0
        private static IrcBot GetBot()
        {
            var bot = new IrcBot();

            return(bot);
        }
Ejemplo n.º 29
0
 public TimePlugin(IrcBot botInstance)
     : base(botInstance)
 {
 }
Ejemplo n.º 30
0
 public CalendarPlugin(IrcBot botInstance)
     : base(botInstance)
 {
 }