public void Attach(FnordBot.FnordBot bot) { this.bot = bot; bot.OnPublicMessage += new FnordBot.FnordBot.MessageHandler(bot_OnPublicMessage); bot.OnPrivateMessage += new FnordBot.FnordBot.MessageHandler(bot_OnPrivateMessage); }
public Referendum( string creator, FnordBot.FnordBot bot ) { this.creator = creator; this.bot = bot; votes = new Dictionary<string, int>(); }
public void Attach(FnordBot.FnordBot bot) { this.bot = bot; bot.OnPublicMessage +=new NielsRask.FnordBot.FnordBot.MessageHandler(bot_OnPublicMessage); log.Info("Wordgame plugin attached"); }
public void Attach( FnordBot.FnordBot bot ) { log.Info( "Attaching voter plugin" ); try { this.bot = bot; bot.OnPrivateMessage += bot_OnPrivateMessage; } catch (Exception e) { log.Error( "Failed in voter.Attach", e ); } }
/// <summary> /// Initializes a new instance of the <see cref="Wordgame"/> class. /// </summary> /// <param name="bot">The bot.</param> /// <param name="channel">The channel.</param> /// <param name="gameList">The game list.</param> public Wordgame(FnordBot.FnordBot bot, string channel, WordgameCollection gameList, string wordListPath) { this.bot = bot; this.channel = channel; this.gameList = gameList; this.rnd = new Random(); this.wordListPath = wordListPath; }