Example #1
0
        public void Start()
        {
            chatapi = new ChatApi(Login, Pass, Name, UserID, MainRoomID, DebugRoomID);
            chatapi.Start();
            this.Name   = chatapi.botname;
            this.UserID = chatapi.userID;

            LoadModulesAtRuntime();
            StartTask();
        }
Example #2
0
 void CheckIfReconnectIsNecessary()
 {
     if (DateTime.Now - chatapi.LastChatApiInitializationAttempt > chatapi.ChatApiReinitializationInterval &&
         DateTime.Now - chatapi.lastEventArrivalTime > chatapi.LastEventArrivalMaximumDelta ||
         chatapi.exceptionOccurred)
     {
         Log("[R] Restarting chat api.");
         chatapi.Stop();
         chatapi.Start();
     }
 }
Example #3
0
        public void Start()
        {
            chatapi = new ChatApi(Login, Pass, Name, UserID, MainRoomID, DebugRoomID);
            chatapi.Start();
            this.Name = chatapi.botname;
            this.UserID = chatapi.userID;

            LoadModulesAtRuntime();
            StartTask();
        }