PsyOps

firstModule

Nov 17th, 2012
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. using BattleCore;
  7. using BattleCore.Events;
  8. using BattleCore.PsyOps;
  9.  
  10. namespace FirstBot
  11. {
  12.     [Behavior("firstModule", "true", "0.01", "mashem", "My first module.")]
  13.     public class firstModule:BotEventListener
  14.     {
  15.         public firstModule()
  16.         {
  17.             RegisterCommand("!flags", ToggleFlagEvent);
  18.         }
  19.  
  20.         Chat msg = new Chat();
  21.  
  22.         public void ToggleFlagEvent(ChatEvent c)
  23.         {
  24.             Game(msg.pm(c.PlayerName, "The cake is a lie."));
  25.         }
  26.  
  27.         public override void Dispose()
  28.         {
  29.             throw new NotImplementedException();
  30.         }
  31.     }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment