2.0.0 • Published 7 years ago

p4-bot-code-screenshot v2.0.0

Weekly downloads
5
License
-
Repository
-
Last release
7 years ago

Screenshot Bot P4 Bot

Using This Bot

You can use this bot on P4 directly from NPM. Just go to the stream where you want to use this bot and in the URL field enter p4-bot-code-screenshot@0.0.1/dist.js.

Publishing

To publish your bot on NPM run:

npm run pub

Developing

Start local HTTP server to serve your index.js from HTTPS:

npm run start

It will display addresses of your server, like below:

Starting up http-server, serving . through https
Available on:
  https://127.0.0.1:10000
  https://192.168.X.X:10000
  https://172.17.X.X:10000
Hit CTRL-C to stop the server

Copy one of the addresses, enter it in your browser and append /index.js, like so:

https://127.0.0.1:10000/index.js

Make sure to validate the HTTPS certificate, so that your browser loads the file.

Now go to https://peefour.com/dev/url and enter that URL to load your bot.

Press "Watch" button to reload your bot automatically when the source changes. Now you can go back to developing your bot and changes will appear in real-time.

npm.io

In "View" side panel select the appropriate view you want to monitor.