protected PiVoteAction(IrcBot botMethods, VotingClient client, CertificateStorage certificateStorage, IrcEventArgs eventArgs) { BotMethods = botMethods; Client = client; CertificateStorage = certificateStorage; EventArgs = eventArgs; }
internal PokerGame(IrcBot bot, string channel) { players = new Queue<PokerPlayer>(); State = GameState.CleanBoard; deck = new RandomDeck(); run = false; this.bot = bot; this.channel = channel; }
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) { }
public QuizPlugin(IrcBot botInstance) : base(botInstance) { }
public AIMLPlugin(IrcBot botInstance) : base(botInstance) { }
public TwitterPlugin(IrcBot botInstance) : base(botInstance) { }
public NntpPlugin(IrcBot botInstance) : base(botInstance) { }
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 PokerPlugin(IrcBot botInstance) : base(botInstance) { }
public TodoPlugin(IrcBot botInstance) : base(botInstance) { }
public MumblePlugin(IrcBot botInstance) : base(botInstance) { }
public SeenPlugin(IrcBot botInstance) : base(botInstance) { }
public UrlToTitlePlugin(IrcBot botInstance) : base(botInstance) { }
public WikipediaPlugin(IrcBot botInstance) : base(botInstance) { }
public ListVotingsAction(IrcBot botMethods, VotingClient client, CertificateStorage certificateStorage, IrcEventArgs eventArgs) : base(botMethods, client, certificateStorage, eventArgs) { }
public RssPlugin(IrcBot botInstance) : base(botInstance) { }
private static IrcBot GetBot() { var bot = new IrcBot(); return bot; }
public FileServerPlugin(IrcBot botInstance) : base(botInstance) { }
public FactoidPlugin(IrcBot botInstance) : base(botInstance) { }
public CalculatorPlugin(IrcBot botInstance) : base(botInstance) { }
public PiVotePlugin(IrcBot botInstance) : base(botInstance) { }
public ChannelModeratorPlugin(IrcBot botInstance) : base(botInstance) { }
public WolframAlphaPlugin(IrcBot botInstance) : base(botInstance) { }
public TranslatePlugin(IrcBot botInstance) : base(botInstance) { }
public RadioPlugin(IrcBot botInstance) : base(botInstance) { }
private static IrcBot GetBot() { var bot = new IrcBot(); return(bot); }
public TimePlugin(IrcBot botInstance) : base(botInstance) { }
public CalendarPlugin(IrcBot botInstance) : base(botInstance) { }