Skip to content
This repository was archived by the owner on May 29, 2018. It is now read-only.

Commit

Permalink
Merge pull request #7 from liquidg3/dev
Browse files Browse the repository at this point in the history
separation of interface and server
  • Loading branch information
liquidg3 authored Nov 7, 2017
2 parents e531097 + 3e468f9 commit 9ec6684
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,18 @@ class Sprucebot {
host = required('host'),
name = required('name'),
description = required('description'),
skillUrl = required('skillUrl'),
interfaceUrl = required('interfaceUrl'),
serverUrl = required('serverUrl'),
svgIcon = required('svgIcon'),
allowSelfSignedCerts = false
}) {
// Setup http(s) class with everything it needs to talk to api
this.name = name
this.description = description
this.icon = svgIcon
this.webhookUrl = skillUrl + '/hook'
this.iframeUrl = skillUrl
this.marketingUrl = skillUrl + '/marketing'
this.webhookUrl = serverUrl + '/hook'
this.iframeUrl = interfaceUrl
this.marketingUrl = interfaceUrl + '/marketing'

this.version = '1.0'
this.https = new Https({
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sprucebot-node",
"version": "0.0.2",
"version": "0.0.3",
"scripts": {
"lint": "eslint '**/**/*{.js}'",
"test": "jest --coverage",
Expand Down

0 comments on commit 9ec6684

Please sign in to comment.