From 09511c6d037634798f4c1cd7b3df8e7617f492f7 Mon Sep 17 00:00:00 2001 From: Mohammed Ashab Uddin Date: Wed, 2 Sep 2020 15:56:34 +0400 Subject: [PATCH] small fixed --- whatsapp-web.js/src/businessLogic/logic.js | 4 ++-- whatsapp-web.js/src/userInteraction/messages.js | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/whatsapp-web.js/src/businessLogic/logic.js b/whatsapp-web.js/src/businessLogic/logic.js index 4ed61b7..039977c 100644 --- a/whatsapp-web.js/src/businessLogic/logic.js +++ b/whatsapp-web.js/src/businessLogic/logic.js @@ -31,7 +31,7 @@ const base64_decode = async (base64str, file) => { const saveImage = async (messageMedia, fileName) => { let file = `../website-generator/public/images/${fileName}.jpg`; await base64_decode(messageMedia.data, file); - return file; + return `../../images/${fileName}.jpg`; } const addProduct = (id) => { @@ -323,7 +323,7 @@ module.exports.help = () => { let help_signal = [ `NOTE : text between '<>' are replaceable.`, - `NOTE : Sentences needs to be between qoutes. For Example "I am a bot" ` + `NOTE : Sentences needs to be between qoutes. For Example "I am a bot" `, `*wg create Create a website with the given company_name*`, `*wg website select * Selects a website if exists`, `*wg website firstname * Sets the firstname`, diff --git a/whatsapp-web.js/src/userInteraction/messages.js b/whatsapp-web.js/src/userInteraction/messages.js index 6d7c436..bd9ace0 100644 --- a/whatsapp-web.js/src/userInteraction/messages.js +++ b/whatsapp-web.js/src/userInteraction/messages.js @@ -15,7 +15,6 @@ const commands = [ //function to be executed callback : (input) => { - logic.onWG(); //mesage to be sent to the user let message = [