forked from tildeverse/sotdbot
Slight typo, ugh
This commit is contained in:
parent
d2c623e8de
commit
a6ae1c5ce5
2
bot.py
2
bot.py
|
@ -9,7 +9,7 @@ SOTDS = datastore.DataStore("sotd.json")
|
|||
def get_title(link):
|
||||
title = str(urlopen(link).read()).split("<title>", 1)[1].split("</title>", 1)[0]
|
||||
if "YouTube" in title:
|
||||
return title.split(" - Youtube", 1)[0]
|
||||
return title.split(" - YouTube", 1)[0]
|
||||
return title
|
||||
|
||||
class SOTDBot(teambot.Handler,teambot.CommandHandlerMixin):
|
||||
|
|
Loading…
Reference in New Issue