diff --git a/spicebot_command_dadjoke/__init__.py b/spicebot_command_dadjoke/__init__.py index 6a0c229..5908215 100644 --- a/spicebot_command_dadjoke/__init__.py +++ b/spicebot_command_dadjoke/__init__.py @@ -12,11 +12,11 @@ def upper(bot, trigger, comrun): joke = getDadJoke() if not joke: joke = 'My humor module is broken.' - comrun.say(str(joke)) + comrun.say(joke) def getDadJoke(): url = 'https://icanhazdadjoke.com' page = requests.get(url, headers={'Accept': 'text/plain'}) - joke = page.content + joke = page.text return joke