Skip to content

darr1s/xkcd-slack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

new-xkcd-slack

So you're chatting in Slack, and there's a new xkcd out. Your RSS reader isn't open, and you haven't looked at xkcd.com in a while. With this bot for Slack, don't worry about missing out, as it'll post the latest xkcd to Slack automagically* (*depending on the cron job that you use).

Installation

  1. Download this repository
  2. Set the Slack hook URL, bot name and bot image URL in new-xkcd-slack.py
  3. Install dependencies using 'pip install -r requirements.txt'
  4. Setup a cron job to run the python script (eg. '0 0,4,8,12,16,20 * * * root ./path/to/new-xkcd-slack.py')

Screenshot

Screenshot of xkcdbot posting a new xkcd comic

(Note: the comic and alt text is licensed under a Creative Commons Attribution-NonCommercial 2.5 License)

License

The code is licensed under the MIT license (found in the LICENSE file).

About

Posts the latest xkcd into Slack

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages