Skip to content
peter soboyejo edited this page Jan 27, 2017 · 6 revisions

Imgur

Setting Up

Go to your organizations Apps & Integrations page. It should look like this;

Apps & Integrations Click on the "Manage" button in the top right hand corner, then choose

Custom Integrations > Bots > Add Configuration

Configure your bot settings and be sure to collect the API Token and add it into your config.json file

Setup Custom Commands

Assuming that you have shopify-monitor deployed on a server you will have to have some http entrypoint in order to set this up. When initiating the script it should print "Local server started on port ". Here you can either run your server on a VPS, Heroku, AWS, etc. If you're just running it on your local computer you can port foward your IP address and bind it to the port so you can easily access the shopify-monitor http service. Assuming that you have that set up and have an HTTP Entrypoint to access the shopify-monitor web service then you can continue on with setting up custom commands.

/monitor

Returns monitor status of specific configurations and server uptime. Imgur

How to configure:

  1. Custom Integrations > Slash Commands > Add Configuration (this)
  2. Set the command name to /monitor or whatever you want to name it
  3. Set the URL to <domain/ip to shopify-monitor webserver>/command/status
  4. Make sure the Method type is POST and if so continue on and customize it however you like, just don't change the values instructed to input.

Video showing how to setup public link to server

Clone this wiki locally