Example #1
0
 static async Task LoadCommands()
 {
     while (true)
     {
         CommandsList = CustomCommands.LoadCommands(CommandLocation);
         for (int i = 0; i < CommandsList.Count; i++)
         {
             if (CommandsList[i].IsModCommand)
             {
                 ModeratorCommandsList.Add(CommandsList[i]);
             }
             else
             {
                 UserCommandsList.Add(CommandsList[i]);
             }
         }
         await Task.Delay(5000);
     }
 }