Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 2.25 KB

README.md

File metadata and controls

43 lines (30 loc) · 2.25 KB

slack_coding_challenge

Slack bot Designed to daily send a link to a coding challenge.

image

Functionalities

This bot will automatically send a message to your slack channel. It is able to fetch a random link of a coding challenge from a file, or, from a mysql database (which I am currently using).

The structure of my challenges table is the following database

Bot Message structure

challenge screenshot

Inspired from

https://medium.com/@sharan.aadarsh/sending-notification-to-slack-using-python-8b71d4f622f3

System requirements

  • Python3

How to avoid to get this script running h24

I have set up a cronjob, to automatically trigger and run the python script, in according to my needs Guide to crontab job set-up

Troubleshoot:

https://stackoverflow.com/questions/8727935/execute-python-script-via-crontab#8727991

Note

  • At the root folder of the bot, make sure to add create a log folder;
  • This bot has been made during a boring thursday night, any feedback is welcome.

🔗 Links - Get my Linktree

linked-in github medium gmail Twitter

Apply for a mentorship session with me (get a 7 days free trial)

MentorCruise