Skip to content

added cleanup.list command#20

Merged
Jimmacle merged 3 commits intoTorchAPI:stagingfrom
jimmble:master
Sep 19, 2017
Merged

added cleanup.list command#20
Jimmacle merged 3 commits intoTorchAPI:stagingfrom
jimmble:master

Conversation

@jimmble
Copy link
Copy Markdown
Contributor

@jimmble jimmble commented Sep 19, 2017

The command lists names of grids satisfying the cleanup condition. Useful as preview before issuing the cleanup command itself.

Equinox- and others added 2 commits September 7, 2017 20:08
lists grids satisfying cleanup condition
@jimmble
Copy link
Copy Markdown
Contributor Author

jimmble commented Sep 19, 2017

Example:

Comment thread Essentials/Commands/CleanupModule.cs Outdated
{
var grids = ScanConditions(Context.Args).OrderBy(g => g.DisplayName).ToList();
for (var i = 0; i < grids.Count; i++)
Context.Respond($"{i + 1}. {grids[i].DisplayName} ({grids[i].BlocksCount} block(s))");
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider using a StringBuilder here and only send one chat message for the command instead of one message per grid.

@Jimmacle Jimmacle changed the base branch from master to staging September 19, 2017 19:46
@Jimmacle Jimmacle merged commit 7d3b8c8 into TorchAPI:staging Sep 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants