juicy-coupon-bot
Advanced tools
Comparing version 1.3.1 to 1.3.2
@@ -8,3 +8,3 @@ const logger = require('../lib/logger') | ||
module.exports = (message) => { | ||
if (process.env.PUBLISHING_MODE === true) { | ||
if (process.env.PUBLISHING_MODE) { | ||
graph.post('owasp.juiceshop/feed', { message }, function (err, res) { | ||
@@ -18,4 +18,4 @@ if (err) { | ||
} else { | ||
logger.info(`[${colors.yellow('❌')}] Skipped Facebook post: ${colors.yellow('Post will only be published when PUBLISHING_MODE=true is set as an environment variable')}`) | ||
logger.info(`[${colors.yellow('❌')}] Skipped Facebook post: ${colors.yellow('Post will only be published when PUBLISHING_MODE is set as an environment variable')}`) | ||
} | ||
} |
@@ -13,3 +13,3 @@ const logger = require('../lib/logger') | ||
module.exports = (text, title) => { | ||
if (process.env.PUBLISHING_MODE === true) { | ||
if (process.env.PUBLISHING_MODE) { | ||
R.api.post('/api/submit', { api_type: 'json', sr: 'owasp_juiceshop', kind: 'self', title, text }) | ||
@@ -23,4 +23,4 @@ .then(function (response) { | ||
} else { | ||
logger.info(`[${colors.yellow('❌')}] Skipped Reddit post: ${colors.yellow('Post will only be published when PUBLISHING_MODE=true is set as an environment variable')}`) | ||
logger.info(`[${colors.yellow('❌')}] Skipped Reddit post: ${colors.yellow('Post will only be published when PUBLISHING_MODE is set as an environment variable')}`) | ||
} | ||
} |
@@ -12,3 +12,3 @@ const logger = require('../lib/logger') | ||
module.exports = (status) => { | ||
if (process.env.PUBLISHING_MODE === true) { | ||
if (process.env.PUBLISHING_MODE) { | ||
T.post('statuses/update', { status }) | ||
@@ -22,4 +22,4 @@ .then(function (tweet) { | ||
} else { | ||
logger.info(`[${colors.yellow('❌')}] Skipped Tweet: ${colors.yellow('Status will only be published when PUBLISHING_MODE=true is set as an environment variable')}`) | ||
logger.info(`[${colors.yellow('❌')}] Skipped Tweet: ${colors.yellow('Status will only be published when PUBLISHING_MODE is set as an environment variable')}`) | ||
} | ||
} |
{ | ||
"name": "juicy-coupon-bot", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "Coupon code generator and distribution bot for OWASP Juice Shop", | ||
@@ -5,0 +5,0 @@ "homepage": "http://owasp-juice.shop", |
25126