Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tidying up jokes #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

dan-waters
Copy link

@dan-waters dan-waters commented Apr 22, 2015

Making it more 'Softwire'


This change is Reviewable

@@ -14,7 +14,7 @@

# Convert to JSON and save joke
j = JSON[response.body]
@@joke = j['value']['joke']
@@joke = j['value']['joke'].gsub('Chuck Norris', 'Usman')
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 😄
There is however a way to do this via the icndb API - have a look at: http://www.icndb.com/api/ (look for "Changing the name of the main character"), which I think would be nicer!

EDIT: Also, I've just thought... would be nice to make this an environment variable to make it easy to change (otherwise you have to mess with the code and build the container again, which is a faff)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants