예제 #1
0
 public static BotLogic GetInstanse()
 {
     if (instanse == null)
     {
         instanse = new BotLogic();
     }
     return(instanse);
 }
예제 #2
0
 static async Task Execute()
 {
     // download settings
     Utils.Settings.GetInstanse().Read();
     // init
     ACommand.commands = new List <ACommand>()
     {
         new ShowCommand(),
         new HelpCommand()
     };
     //
     await BotLogic.GetInstanse().StartListenMessage();
 }