Skip to content

Commit ba4d4de

Browse files
authored
Merge pull request CloudBotIRC#149 from linuxdaemon/gonzobot+fix-cat-facts
Fix cat facts KeyError
2 parents c3bb8ac + 04323bf commit ba4d4de

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/cats.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def cats(reply, bot):
2020
"""- gets a fucking fact about cats."""
2121
r = get_data('https://catfact.ninja/fact', reply, bot, params={'max_length': 100})
2222
json = r.json()
23-
response = json['facts']
23+
response = json['fact']
2424
return response
2525

2626

0 commit comments

Comments
 (0)