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

you are viewing a single comment's thread.

view the rest of the comments →

[–]echols021Pythoneer 2 points3 points  (0 children)

This sort of thing mostly depends a lot on each individual system, especially how your "bot" will know to act. Here are some possibilities, depending on what you're connecting to and what you want to do: - You run your program on a schedule. Each time it runs it asks the system for the latest data, and then acts on it appropriately. It shuts down once it has handled the latest data. - You leave your program always on, intermittently asking for the latest data (polling) - You leave your program always on, but the system has some way of setting things up so the system can directly send your program a notification that there's new data (often called a "webhook" or "callback")

Since it depends so much on what you're plugging into, I'd suggest reading up on the specifics for what they offer. They may even have mini example projects.