|
|
@ -133,6 +133,10 @@ class InhumanResources(Bureau):
|
|
|
|
|
|
|
|
|
|
|
|
@add_command("getmyip", "Print Office IP Address")
|
|
|
|
@add_command("getmyip", "Print Office IP Address")
|
|
|
|
def print_my_ip(self):
|
|
|
|
def print_my_ip(self):
|
|
|
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
Print out the current network address of the office. Useful for
|
|
|
|
|
|
|
|
necessary screen-based maintainance tasks.
|
|
|
|
|
|
|
|
"""
|
|
|
|
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
|
|
|
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
|
|
|
sock.connect(("8.8.8.8", 80))
|
|
|
|
sock.connect(("8.8.8.8", 80))
|
|
|
|
self.print_small("This Screenless Office currently resides at:\r\n" +
|
|
|
|
self.print_small("This Screenless Office currently resides at:\r\n" +
|
|
|
|