Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by tessierashpool9

1 year ago

easy:

  while(true) {
    if(
      (date.today() - date(this.system.uptime) >= 51)
        && !this.sys.isFlying
    ) {
      this.sys.resetNow();
    }
    time.sleep(1000);
  }

1 comment

tessierashpool9

Reply

boohoo123  1 year ago

well now your system doesn't do anything because its stuck in a forever loop checking the time. it's most likely programmed in C so you can remove the OOP as well.

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities