From 7cf5183eb27e85486d1bc5e90d12dce91f5aac8d Mon Sep 17 00:00:00 2001 From: cheveguerra Date: Thu, 12 Jan 2023 03:41:34 -0600 Subject: [PATCH] mods minimos --- bot.js | 4 ++-- package.json | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bot.js b/bot.js index bc27599..96cef21 100644 --- a/bot.js +++ b/bot.js @@ -25,9 +25,9 @@ client.on('ready', () => { client.on('message', msg => { console.log(msg); - if (msg.body == '!ping') { + if (msg.body == '/ping') { msg.reply('pong'); - }else if (msg.body === '!buttons') { + }else if (msg.body === '/botones') { let button = new Buttons('Button body',[{body:'bt1'},{body:'bt2'},{body:'bt3'}],'title','footer'); client.sendMessage(msg.from, button); }else if (msg.body ==='bt1'){ diff --git a/package.json b/package.json index fe0a2bb..dcfc892 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "description": "", "main": "bot.js", "scripts": { + "start": "node ./bot.js", "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [],