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

bookofday plugin #23

Merged
merged 2 commits into from Jul 3, 2019

Conversation

stschoberg
Copy link
Contributor

brief description of changes

I added the bookofday plugin. This is my first open source contribution! Please let me know if I need to correct anything. The only thing I wasn't sure about was using beautifulsoup. Do I have to add that as a dependency somewhere?

def book(self):
headers = {'Accept' : 'application/json'}
r = requests.get('https://icanhazdadjoke.com', headers=headers)
soup = BeautifulSoup(r.text, 'html.parser')
Copy link
Member

Choose a reason for hiding this comment

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

hum nice but you have to go to https://bookoftheday.org . If you want to contribute a dad joke plugin, just modify the name and command.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah my mistake. I was using that url while debugging. I just commited with the updated bookoftheday.org

@Abdur-rahmaanJ
Copy link
Member

see comment

@Abdur-rahmaanJ
Copy link
Member

cool! merging, else, you tried the bot?

@Abdur-rahmaanJ Abdur-rahmaanJ merged commit 7927d4c into pyhoneybot:master Jul 3, 2019
Zernerus pushed a commit to Zernerus/honeybot that referenced this pull request Jul 17, 2019
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.

None yet

2 participants