示例#1
0
        void doSetIPOnBot(string token)
        {
            var msg = new Classes.Message();

            msg.Author  = SERVERUSER;
            msg.Colour  = Color.Blue;
            msg.Content = "Internal error occured when performing api POST.";
            try
            {
                msg.Content = MLHandler.SendServerStart("Chat Server");
                if (msg.Content.StartsWith("Error:") == false)
                {
                    masterlistTimer.Enabled  = true;
                    masterlistTimer.Interval = 1000;// * 60 * 5;
                    masterlistTimer.Start();
                }
            } catch (Exception ex)
            {
                msg.Content = ex.Message;
            }
            Server_NewMessage(this, msg);
        }
示例#2
0
 private void masterlistTimer_Tick(object sender, EventArgs e)
 {
     MLHandler.SetPlayerCount(Server.PlayerCount);
 }