示例#1
0
 public Task Clean(CommandContext ctx)
 {
     ctx.Client.DebugLogger.LogMessage(LogLevel.Info, "DiscHax", "Cleaning...", DateTime.Now);
     Cleanup.Clean(CommandArr.GetCommandNames(),
                   ctx.Client.Guilds.Select(s =>
                                            new Tuple <string, IEnumerable <string> >(s.Key.ToString(),
                                                                                      s.Value.Members.Select(u => u.Key.ToString()))),
                   ctx.Client.Guilds.SelectMany(s => s.Value.Channels).Select(s => s.Key.ToString()));
     return(ctx.RespondAsync("Complete"));
 }
示例#2
0
        public static void Main(string[] args)
        {
            Cleanup cleanup = new Cleanup();

            cleanup.Clean();

            Sorter sort = new Sorter(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location));

            sort.Sort();
        }
示例#3
0
        public static void Main(string[] args)
        {
            Cleanup cleanup = new Cleanup();

            cleanup.Clean();
        }