


SHOTBOT API SOFTWARE
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR The above copyright notice and this permission notice shall be included inĪll copies or substantial portions of the Software. To use, copy, modify, merge, publish, distribute, sublicense, and/or sellĬopies of the Software, and to permit persons to whom the Software isįurnished to do so, subject to the following conditions: In the Software without restriction, including without limitation the rights Of this software and associated documentation files (the "Software"), to deal Permission is hereby granted, free of charge, to any person obtaining a copy You can also pass a -dry switch to make it just print whatever it would have posted without actually posting it. Currently supported options: 'archive' and 'twitter'. PostingTargets should be all of the targets that you want your posts to go to. Example:įooterHTML: `Want more hills? Go get you some. To add a bot, create a -config.js file that contains GitHub info (for posting to a static web archive) and Twitter API keys and properties it should use under /configs. There's an instance of this posting to every three hours (which is probably pointless because I think the widget updates daily). Will probably work fine with Node 6 or higher. In order to run it on Ubuntu 16, I needed to do the following first:Ĭopy the Makefile in this project (or the entire project) to it.Īlternately you can run the contents of that Make target there:
SHOTBOT API INSTALL
If you are running it on OS X, I've found that you can run it by doing an npm install and then BOT=il-gov node post-shot.js or make run-il-gov. See behavior/il-gov-behavior.js for the behavior definition.Īfter you clone this, you need to create a configs/il-gov-config.js file that looks like the example below, except that it only needs Twitter credentials. This fork is configured to post pictures of the ProPublica Illinois governors race widget. This fork is configured to post pictures of the ProPublica Illinois governor's race widget. Multi-tenant app for bots that post screenshots of web pages. Multi-tenant app for bots that post screenshots of web pages.
