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?
- 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
- 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 (calledhomework.pdf
) is sent and the images are deleted
- 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
- Light strip is controlled via IFTT
- Power strip is controlled via API (see setup instructions at https://github.com/codetheweb/tuyapi/blob/master/docs/SETUP.md)
- IFTT Webhook URLs and TuyAPI object should be stored in
config.js
(an example is provided)
onsite, in progress