private void Start()
 {
     console.WriteLine("Start Bot.");
     Task.Run(() => Timer(TimeSpan.FromHours(4)));
     db = new DBmanager(console);
     Task.Run(() => Launch(new SubscriberBot(console, db), 200));
     Task.Run(() => Launch(new LikeBot(console, db), 200));
     Task.Run(() => Launch(new UnsubscribeBot(console, db), 250));
     Task.Run(() => Launch(new WorkSaveBoardBot(console, db), 300));
 }
Exemple #2
0
        public Bot(Writer console, DBmanager db)
        {
            UserXpath          = "//ul[@class ='Followers-list-vZl']";
            FollowingUserXpath = "//ul[@class ='Following-list-1Gx']";
            Cons    = console;
            this.db = db;
            string chromeProfileName = (++profileCounter).ToString() + "BehanceBot";

            Сhrome = new ChromeBrowser(chromeProfileName);
            Сhrome.SetWindowSize(1280, 1000);
        }
Exemple #3
0
 public SubscriberBot(Writer Cons, DBmanager db) : base(Cons, db)
 {
     Name = "FollowingBot";
 }
Exemple #4
0
 public UnsubscribeBot(Writer Cons, DBmanager db) : base(Cons, db)
 {
     Name = "UnFollowingBot";
 }
 public LikeBot(Writer Cons, DBmanager db) : base(Cons, db)
 {
     Name = "LikeBot";
 }
 public WorkSaveBoardBot(Writer Cons, DBmanager db) : base(Cons, db)
 {
     Name = "WorkSaveBoard";
 }