I wanted a thing to feed Reddit live threads to an IRC channel, figured I'd use my SingleMessageBot module to save time. This project also introduced me to Tornado, which is pretty darn fantastic.
- At the moment this is designed specifically for reddit live threads, allowing users to pass a live thread url by argument and retrieving the websocket url from that. Other uses can be allowed for by simply modifying main() in wstoirc.py.
- Clone the repo
pip install -r requirements.txt
- Run the script once to generate irc settings:
python wstoirc.py
- Edit smbotconfig.json
- Run the script again:
python wstoirc.py [reddit live thread url]
. If no url is provided it defaults to my test thread