PsyOps

CatchCoreUpdate

Apr 22nd, 2014
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.63 KB | None | 0 0
  1.             // Core sends each bot a pm with its own info 500ms after startup
  2.             // I use it to initialize bot
  3.             if (c.ChatType == ChatTypes.Private && c.Message.StartsWith("@BotInfo@"))
  4.             {
  5.                 // Catch and store bot info that core sends
  6.                 string[] data = c.Message.Split(':');
  7.                 botName = data[1];
  8.                 arena = data[2];
  9.  
  10.                 // Initialize everything needed to get bot started
  11.                 initializeBot();
  12.  
  13.                 BillerCommand.SendBillerCommand(msg.chan(1, "Bot[" + botName + "] Initialized. Timer started."));
  14.             }
Advertisement
Add Comment
Please, Sign In to add comment