mods minimos

This commit is contained in:
2023-01-12 03:41:34 -06:00
parent 94fd950027
commit 7cf5183eb2
2 changed files with 3 additions and 2 deletions

4
bot.js
View File

@@ -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'){

View File

@@ -4,6 +4,7 @@
"description": "",
"main": "bot.js",
"scripts": {
"start": "node ./bot.js",
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],