Beispiel #1
0
        /// <summary>
        /// Execute this command.
        /// </summary>
        /// <param name="sender">Session attempting to execute this command</param>
        /// <param name="args">Command parameters</param>
        public void Execute(Session sender, string[] args)
        {
            var users = ChattingState.Who.Values;
            var msg   = string.Join(" ", args);
            var cyan  = ANSI.Color(ANSI.FGColorBit.Cyan);
            var white = ANSI.Color(ANSI.FGColorBit.White);

            foreach (var user in users)
            {
                user.Write($"{cyan}{sender.User.Username} {msg}{white}{Environment.NewLine}", true);
            }
        }