diff --git a/screenless/bureau/ihr/ihr.py b/screenless/bureau/ihr/ihr.py index 248a3b4..0e96edc 100644 --- a/screenless/bureau/ihr/ihr.py +++ b/screenless/bureau/ihr/ihr.py @@ -32,7 +32,15 @@ class InhumanResources(Bureau): self.webthread = threading.Thread(target=self.webapp.run, kwargs=webargs, daemon=True) self.webthread.start() - # update_commands(self) + + def start_msg(): + msg = "HELLO WORLD\r\n\r\nAVAILABLE BUREAUS:\r\n" + for prefix in self.menu.keys(): + msg += " " + self.menu[prefix]["name"] + " (" + prefix + ")\r\n" + self.print_small(msg) + self.print_my_ip() + msgtimer = threading.Timer(10, start_msg) # wait for the other bureux + @add_api("addbureau", "Register Bureau") def add_bureau(self, data): @@ -174,5 +182,4 @@ def main(): hr.run() if __name__ == "__main__": - hr = InhumanResources() - hr.run() + main()