Update plugin.py

This commit is contained in:
Gordon Shumway 2019-02-08 00:47:30 -05:00 committed by GitHub
parent 574659e41c
commit 702c10672e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -32,8 +32,7 @@ class Lyrics(callbacks.Plugin):
channel = msg.args[0]
lyrics = None
if ',' in lyric:
query = lyric.split(', ')
query = lyric.split(', ')
else:
irc.reply("Searches must be formatted as artist, song title")
data = requests.get("https://lyric-api.herokuapp.com/api/find/{0}/{1}".format(query[0], query[1])).json()