Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 1.29 KB

README.md

File metadata and controls

33 lines (24 loc) · 1.29 KB

Winston

Winston is a bot. He's here to help. He's like J.A.R.V.I.S., but less alive.

Winston Is Not Some Toy, Okay Nerds?

Running

  • Install dependencies: npm install keybase-bot pdfkit feedparser request codetheweb/tuyapi
  • Create bot-paper-key.txt (line 1: the username, line 2: the paperkey)
  • Create (empty) directory images/
  • create config.js (example is provided, real values are only needed if controlling lights)
  • node winston.js

PNG to PDF

  • monitors channel png2pdf
  • attachments are saved to /images
  • when convert is sent: all files in /images are made into a PDF, in alphabetical order; the PDF (called homework.pdf) is sent and the images are deleted

XKCD

  • monitors channel xkcd
  • a simple IFTT recipe sends xkcd? when the RSS feed is updated, using the Keybase webhookbot
  • when xkcd? is sent, the RSS feed is checked; any comic posted within 15 minutes is downloaded and sent

Lights


onsite, in progress