Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Start bot timer and anything needed on initialization
- public void StartBot()
- {
- // Configure and start main game timer
- MainGameTimer.Elapsed += new ElapsedEventHandler(GameTimer);
- MainGameTimer.Interval = 50;
- MainGameTimer.Start();//and start it
- Game(msg.remote_pm("PsyOps", "Bot Initialized. Timer started."));
- }
- //Timestamp for checking chat
- DateTime CheckChat = DateTime.Now;
- //How often we check chats
- byte CheckChateRate = 1;
- public void GameTimer(object source, ElapsedEventArgs e)
- {
- //if ((DateTime.Now - CheckChat).Duration() > TimeSpan.FromMinutes(CheckChateRate))
- //{
- // Game(msg.pub("?chat"));
- // CheckChat = DateTime.Now;
- //}
- }
Advertisement
Add Comment
Please, Sign In to add comment