public void Run(MessageCreateEventArgs e) { var cd = new ColumnDisplay(); cd.AppendCol("Network"); cd.AppendCol("Height"); cd.AppendCol("Nodes"); cd.AppendCol("Last block (utc)"); cd.AppendCol("Next (est)"); cd.AppendCol("Previous block times"); cd.AppendCharLine('-'); foreach (var network in Program.NetworkList.Values) { network.AppendDisplayColumns(ref cd); cd.NewLine(); } e.Channel.SendMessageAsync($"```{cd.ToString()}```"); }
public new string ToString() { GetBranches(); var cd = new ColumnDisplay(); cd.AppendCol("Branch"); cd.AppendCol("Sha"); cd.AppendCol("Commit"); cd.AppendCol("Tag"); cd.AppendCharLine('-'); foreach (var branch in BranchList) { branch.AppendDisplayColumns(ref cd); cd.NewLine(); } cd.AppendLine(Head.ToString()); return(cd.ToString()); }