small fixed

This commit is contained in:
Mohammed Ashab Uddin
2020-09-02 15:56:34 +04:00
parent 768f2a596a
commit 09511c6d03
2 changed files with 2 additions and 3 deletions

View File

@@ -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 <company_name> Create a website with the given company_name*`,
`*wg website select <company_name>* Selects a website if exists`,
`*wg website firstname <firstName>* Sets the firstname`,

View File

@@ -15,7 +15,6 @@ const commands = [
//function to be executed
callback : (input) => {
logic.onWG();
//mesage to be sent to the user
let message = [