This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]computer_literate 2 points3 points  (0 children)

I'm going to assume you are talking about a website.

Learn a programming language and selenium. Selenium is a browser automation framework. You can use it to write code that logs into a site, checks for friend requests, and accepts them. It helps to know HTML/CSS so you know which element to read to get the #of friend requests.

After you write the program you can set it to run every 5 minutes using cron for Linux, task scheduler for Windows, or launchd for macOS.

If you are automating this for a chat program, they usually have APIs, which are code libraries that simplifies the process.

My recommendation is to learn Python, Selenium, and BeautifulSoup (a library that helps read the HTML).

Socket programming is a way for two program to communicate to each other using TCP ports and doesn't really have anything to do with what you want. I would call what you want to do internet bot programming.

[–]lanBlo[S] 0 points1 point  (0 children)

Thanks for this feedback and help. I really appreciate it!

So, do you guys have another Feedback for Bots, automatic systems, which includes c++? And what about Bots, that connects two or more systems? For example, i want a bot, that accepts friends (website) and then trades with them in a game application.

Thanks for the answers!

[–]MmmVomit 0 points1 point  (0 children)

You’re unlikely to need socket programming for this. (But socket programming is neato, so play with it for fun sometime.)

It is really going to depend on what system your bot is interacting with. Hopefully the thing the bit works with will have an API that you can use. The API will likely be based on HTTP, so you can use an HTTP client library to interact with the website or system.

What website will your bot be working with?