TeamMentor.CoreLib.TBot_Brain.List C# (CSharp) Method

List() public method

public List ( ) : Stream
return Stream
        public Stream List()
        {
            var filesHtml = AvailableScripts.Aggregate("Here are the commands I found:<ul>",
                                (current, items) => current + "<li><a href='/rest/tbot/run/{0}'>{0}</a> - {1}</li>"
                                                                .format(items.Key, items.Value.fileContents().hash()));
            filesHtml += "</ul>";
            return GetHtml(filesHtml, false,-1);
        }