From d7be184e03c374c5e2790a223017cdcd1cf1b54e Mon Sep 17 00:00:00 2001 From: MR NIMA <108072422+DarkMakerofc@users.noreply.github.com> Date: Sun, 9 Jul 2023 18:46:05 +0530 Subject: [PATCH] Fix error --- Procfile | 2 +- package.json | 4 ++-- replit.nix | 8 ++++++++ 3 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 replit.nix diff --git a/Procfile b/Procfile index 973094b..70945cd 100644 --- a/Procfile +++ b/Procfile @@ -1 +1 @@ -worker: node index.js \ No newline at end of file +worker: pm2 start index.js && pm2 logs \ No newline at end of file diff --git a/package.json b/package.json index fd87fc4..86e5238 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "open-ai-chatGPT-bot", "version": "2.0.0", "description": "Mr nima chat gpt bot allows you to use OpenAi(chatGPT) on Whatsapp.", - "main": "index.js", + "main": "main.js", "type": "commonjs", "scripts": { "start": "node main.js" @@ -21,7 +21,7 @@ "dependencies": { "@adiwajshing/baileys": "npm:mrnima-baileys@6.0.3", "@adiwajshing/keyed-db": "^0.2.4", - "mrnima-openai-chatgpt-bot": "^0.0.9", + "mrnima-openai-chatgpt-bot": "^0.1.1", "openai": "^3.1.0", "qrcode-terminal": "^0.12.0" }, diff --git a/replit.nix b/replit.nix new file mode 100644 index 0000000..bf2d6d9 --- /dev/null +++ b/replit.nix @@ -0,0 +1,8 @@ +{ pkgs }: { + deps = [ + pkgs.nodejs-18_x + pkgs.nodePackages.typescript-language-server + pkgs.yarn + pkgs.replitPackages.jest + ]; +} \ No newline at end of file