Example #1
0
 internal static void InvokeBotRunnedEvent(Bot bot, BotRunnedEventArgs eventArgs)
 {
     BotRunned(bot, eventArgs);
 }
 private static void Main()
 {
     Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");
     Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US");
     Bot = new Bot(new BotSettings(INSERT_YOUR_TOKEN_HERE)
     {
         InfoToConsole = true,
         ExceptionsToConsole = true,
         RequestsToConsole = true,
         ResponsesToConsole = true,
         Name = "LIKE5BOT",
         GetProfile = true
     });
     _cacheDirectory = Environment.CurrentDirectory + Path.DirectorySeparatorChar + "WallCache" + Path.DirectorySeparatorChar;
     if (!Directory.Exists(_cacheDirectory))
     {
         Directory.CreateDirectory(_cacheDirectory);
     }
     Run();
     Bot.WaitToDie();
 }