From 169c242e351334e7713c672b3f0e8aea259604cb Mon Sep 17 00:00:00 2001 From: JayWll Date: Sat, 25 Apr 2020 14:12:55 -0600 Subject: [PATCH] Created new module for alerts --- nodeapp/src/alert.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 nodeapp/src/alert.js diff --git a/nodeapp/src/alert.js b/nodeapp/src/alert.js new file mode 100644 index 0000000..00e0e4c --- /dev/null +++ b/nodeapp/src/alert.js @@ -0,0 +1,9 @@ +const path = require('path') +const twit = require('twit') +require('dotenv').config({path: path.join(__dirname, '../../.env')}) + +const alert = (type) => { + console.log('Alert triggered for type: ' + type) +} + +module.exports = alert