예제 #1
0
        public void UserChats(string username)
        {
            if (username == "dragonhumpersdm" || username == "dragonhumpers")
            {
                return;
            }

            DndViewer viewer = AllViewers.Get(username);

            viewer.LastChatMessage = DateTime.Now;

            if (viewer.AlreadySeen)
            {
                return;
            }

            viewer.AlreadySeen = true;

            if (viewer.CardsPlayed > 0)
            {
                VipGreeting(viewer.UserName);
                if (viewer.HasAnyCharges())
                {
                    TellViewerAboutRemainingCharges(viewer);
                }
            }
            else
            {
                NormalGreeting(viewer.UserName);
            }
        }
예제 #2
0
 private void StopStreaming()
 {
     AllViewers.Save();
     startedStreaming = false;
 }