fix for hiatus
This commit is contained in:
parent
4d5a05614d
commit
c8b152e3fe
|
@ -16,6 +16,7 @@ def get_time(ep):
|
||||||
def when(inp, say=None):
|
def when(inp, say=None):
|
||||||
#"Shows the countdown to the new episode of My Little Pony: Friendship is Magic!"
|
#"Shows the countdown to the new episode of My Little Pony: Friendship is Magic!"
|
||||||
|
|
||||||
|
try:
|
||||||
ep = ponyapi.newest()
|
ep = ponyapi.newest()
|
||||||
now, then, td = get_time(ep)
|
now, then, td = get_time(ep)
|
||||||
seasonep = ""
|
seasonep = ""
|
||||||
|
@ -34,6 +35,9 @@ def when(inp, say=None):
|
||||||
|
|
||||||
return reply
|
return reply
|
||||||
|
|
||||||
|
except:
|
||||||
|
return "404! We're on hiatus!"
|
||||||
|
|
||||||
@hook.command
|
@hook.command
|
||||||
def randomep(inp):
|
def randomep(inp):
|
||||||
#"Shows a random episode of My Little Pony: Friendship is Magic"
|
#"Shows a random episode of My Little Pony: Friendship is Magic"
|
||||||
|
|
Loading…
Reference in New Issue