• 5 Posts
  • 351 Comments
Joined 3 years ago
cake
Cake day: June 12th, 2023

help-circle













  • Have it auto-mirror to a social media platform.

    That’s what it is most of the time. The thing is that native content just does a lot better than linked content. Think about how often someone will see a link and not click it. If they don’t have to click and you meet them on the website they’re already on, your content is consumed a lot more. I’m not just talking about so-called “content creators”, but also things like what the Rust account would post.






  • I don’t know Rust, I’m just here to chill. I can tell you what I would do, and have done, in PowerShell to solve this. From there you can translate that to Rust.

    Let’s go with your limit of 200 requests per second. At the start of the script, I create a stopwatch. Literally, a stopwatch that’s tied to real world time and can be reset. Then, I have a variable that counts my requests. Every time I make a request, I increment it. Before every request, I check if the variable is 200. If it is, check the timer to see if a second has passed. If not, calculate how much time is left until a second has passed and sleep for that amount of time. After doing that check/sleep, reset the request counter and the stopwatch. From there, continue on.