Updated plugins/time.py
This commit is contained in:
parent
6749bf8340
commit
54c8e37cce
1 changed files with 171 additions and 170 deletions
|
@ -1,9 +1,12 @@
|
|||
# Plugin by Lukeroge with some code from Phenny
|
||||
# <lukeroge@gmail.com> <http://www.dempltr.com/>
|
||||
|
||||
import re, time, locale, datetime
|
||||
|
||||
from util import hook, http
|
||||
from util import hook
|
||||
from util import http
|
||||
import re
|
||||
import time
|
||||
import locale
|
||||
import datetime
|
||||
from BeautifulSoup import BeautifulSoup
|
||||
|
||||
TimeZones = {'KST': 9, 'CADT': 10.5, 'EETDST': 3, 'MESZ': 2, 'WADT': 9,
|
||||
|
@ -238,9 +241,7 @@ def timecommand(inp, say=None):
|
|||
return output
|
||||
else:
|
||||
try:
|
||||
return get_time(inp)
|
||||
output = get_time(inp)
|
||||
return output
|
||||
except ValueError:
|
||||
return "Could not get the time for " + inp + "!"
|
||||
|
||||
|
||||
|
||||
|
|
Reference in a new issue