18 changed files with 72 additions and 8 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1 @@ |
|||||
|
from . import chuck_norris |
||||
Binary file not shown.
Binary file not shown.
@ -0,0 +1,13 @@ |
|||||
|
""" |
||||
|
Fetch a random chuck norris fact and dislays it. |
||||
|
""" |
||||
|
import requests |
||||
|
import json |
||||
|
|
||||
|
|
||||
|
def get_content(): |
||||
|
r = requests.get('https://api.chucknorris.io/jokes/random') |
||||
|
return json.loads(r.content)['value'] |
||||
|
|
||||
|
def on_ping(bot, user, channel, message): |
||||
|
return get_content() |
||||
@ -1,11 +1,16 @@ |
|||||
attrs==18.1.0 |
attrs==18.1.0 |
||||
Automat==0.7.0 |
Automat==0.7.0 |
||||
|
certifi==2018.4.16 |
||||
|
chardet==3.0.4 |
||||
constantly==15.1.0 |
constantly==15.1.0 |
||||
hyperlink==18.0.0 |
hyperlink==18.0.0 |
||||
idna==2.7 |
idna==2.7 |
||||
incremental==17.5.0 |
incremental==17.5.0 |
||||
|
Klafirc==0.1 |
||||
PyHamcrest==1.9.0 |
PyHamcrest==1.9.0 |
||||
PyYAML==3.13 |
PyYAML==3.13 |
||||
|
requests==2.19.1 |
||||
six==1.11.0 |
six==1.11.0 |
||||
Twisted==18.7.0 |
Twisted==18.7.0 |
||||
|
urllib3==1.23 |
||||
zope.interface==4.5.0 |
zope.interface==4.5.0 |
||||
|
|||||
Loading…
Reference in new issue