Inital version of !time command

Syntax: !time [area]

Uses the google geocoding api to turn an area specification into a
lat/long coordinate pair, which is then used to get a timezone record to
determine the local time.

Usecase: when working in international groups it's convenient to know if
your co-worker is likely to be awake or asleep.
This commit is contained in:
Marcel van der Boom
2014-11-22 10:29:05 +01:00
parent 69ffa52478
commit e19c3adac4
2 changed files with 104 additions and 0 deletions

View File

@@ -1,4 +1,5 @@
http = require("socket.http")
https = require("ssl.https")
URL = require("socket.url")
json = (loadfile "./bot/JSON.lua")()
-- lrexlib = require("rex_pcre")