Skip to content

Kaustav96/Joke-Bot-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jokes Slackbot App

Jokes SlackBot App

Features

  • Sit back & relax - you will get 2 jokes daily in the morning as well as night.
  • Get Slack Notification
  • Depending upon time of day the image will be changing and send to slack with the jokes.
  • Jokes are coming from 2 API's that are famous for giving random jokes.
  • The Jokes from the APi's are stored in database also. (DB used - MongoDB)
  • Its ROBUST!
    • What if script fails?
    • You get Slack notifications about the exceptions too.
    • You have log files (check bot.log) too, to evaluate what went wrong

Installation

pip install pymongo
pip install requests
pip install beautifulsoup4
  • Clone this repo and create auth.py
git clone https://github.com/Kaustav96/Joke-Bot-App.git
cd Joke-Bot-App
touch auth.py
  • Write your Slack Webhook into auth.py
DEFAULT_SLACK_WEBHOOK = 'https://hooks.slack.com/services/<your custome webhook url>'

About

This is a Python Slack App which sends 2 jokes - during night and morning.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages