Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 public Referendum( string creator, FnordBot.FnordBot bot )
 {
     this.creator = creator;
     this.bot = bot;
     votes = new Dictionary<string, int>();
 }
Esempio n. 3
0
 public void Attach(FnordBot.FnordBot bot)
 {
     this.bot = bot;
     bot.OnPublicMessage +=new NielsRask.FnordBot.FnordBot.MessageHandler(bot_OnPublicMessage);
     log.Info("Wordgame plugin attached");
 }
Esempio n. 4
0
        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 );
            }
        }
Esempio n. 5
0
 /// <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;
 }