|
|
@ -85,8 +85,8 @@ class TwitchBot(irc.bot.SingleServerIRCBot):
|
|
|
|
r.raise_for_status()
|
|
|
|
r.raise_for_status()
|
|
|
|
return r.json()
|
|
|
|
return r.json()
|
|
|
|
|
|
|
|
|
|
|
|
def delete(self):
|
|
|
|
def delete(self, id):
|
|
|
|
r = requests.post('{0}/quotes'.format(self.api_url),
|
|
|
|
r = requests.post('{0}/quote/{1}'.format(self.api_url, id),
|
|
|
|
headers={'X-Quotes-API-Key': self.api_key})
|
|
|
|
headers={'X-Quotes-API-Key': self.api_key})
|
|
|
|
r.raise_for_status()
|
|
|
|
r.raise_for_status()
|
|
|
|
return r.json()
|
|
|
|
return r.json()
|
|
|
|