Пример #1
0
        public override void Execute(Options options)
        {
            var commands = new ParameterPrinter().Print(string.Empty, typeof(Help).Assembly);

            foreach (var command in commands)
            {
                Out.WriteLine(command);
            }
        }
Пример #2
0
        public override void Receive(Message message, Room room, Options options)
        {
            var commands = new ParameterPrinter().Print(string.Empty, typeof(Help).Assembly);
            var sb       = new StringBuilder();

            foreach (var command in commands)
            {
                sb.AppendLine(command);
            }

            HipChatService.Say(room, sb.ToString());
        }