New .tr syntax for translations

This commit is contained in:
Sean B. Palmer
2012-01-11 14:18:34 +00:00
parent b2fe5b31e2
commit e3633957a9
3 changed files with 49 additions and 2 deletions

View File

@@ -280,6 +280,7 @@ tock.priority = 'high'
def npl(phenny, input):
"""Shows the time from NPL's SNTP server."""
# for server in ('ntp1.npl.co.uk', 'ntp2.npl.co.uk'):
client = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
client.sendto('\x1b' + 47 * '\0', ('ntp1.npl.co.uk', 123))
data, address = client.recvfrom(1024)