예제 #1
0
        static void Main(string[] args)
        {
            var services = new ServiceCollection();

            services.AddAudioBypass();

            var api = new VkApi(services);

            api.Authorize(new ApiAuthParams {
                ApplicationId = 7631190,
                AccessToken   = _accessToken,
                Settings      = Settings.Messages
            });

            Console.WriteLine("Press 1 to send requests and post on walls, 2 to only post on walls, 3 to put likes");
            string input = Console.ReadLine();

            Int32.TryParse(input, out _option);

            if (_option == 1)
            {
                // Send friend requests to supposed friends and people that post in groups for requests

                Friends service = new Friends();

                Console.WriteLine("Press ESC to stop");
                service.SendFriendRequests(api);
                service.FindFriendsInGroups(api);
            }

            if (_option <= 2)
            {
                // Post on walls for friend requests

                PostOnWalls service2 = new PostOnWalls();
                service2.PostOnWallsForFriends(api);
            }
            if (_option == 3)
            {
                // Put likes on prof. pics of people in friend list

                Services.Likes service3 = new Services.Likes();
                service3.LikeProfPicAll(api);
            }
        }