Closed salsawij closed 2 years ago
Hello! Thanks for submiting the issue, we will respond to you ASAP.
is scheduled message possible? what to use to make this work
use node-cron npm
var cron = require('node-cron'); async function start() { cron.schedule('10 ', () => { await conn.sendMessage(msg.from, "Hi sayang"); } start(); )}; start();
i tried this, but it doesn't seem to be working, i'm not sure where I wrote it wrong
async function start() {
wait what is that baileys????????
yes, does it not work on baileys?
yes
bocchi is open wa lmfao since when baileys
well, a friend of mine told me that the code is pretty similar, so he told me to use bocchi as a reference
Author
no . they so different
so the scheduled message code can't be implemented in baileys?
so the scheduled message code can't be implemented in baileys?
u still can in baileys there is m.from = m.from ( group id ) try get manual group id use console log
what do i do then? is the code below usable or not? msg.from is simply from in openwa
what do i do then? is the code below usable or not?
var cron = require('node-cron'); async function start() { cron.schedule('10 ', () => { await conn.sendMessage('group id put here', "Hi sayang"); } )}; start();
ohh alright, thank you!! I've been using openwa for 1 to 2 weeks, but the it's very heavy in size. So i chose to use baileys since then openwa is easier than baileys tbh
what do i do then? is the code below usable or not?
var cron = require('node-cron'); async function start() { cron.schedule('10 ', () => { await conn.sendMessage('group id put here', "Hi sayang"); } )}; start();
group id must be like this ( same open wa and baileys )
ohh alright, thank you!! I've been using openwa for 1 to 2 weeks, but the it's very heavy in size. So i chose to use baileys since then openwa is easier than baileys tbh
if you need help just discord me ohsyme#8175
ohh alright, thank you!! I've been using openwa for 1 to 2 weeks, but the it's very heavy in size. So i chose to use baileys since then openwa is easier than baileys tbh
var cron = require('node-cron');
var task = cron.schedule('*/1 * * * *', async () => {
console.log('will execute every minute until stopped');
task.stop();
}, {
// sisanya basic crontab ada di google
// https://nodecron.com/docs/
// node cron bsa ngikutin dari pc lu
// kalo scheduled dibawah ini gw setting biar dia ngikutin jam indonesia kalo dibuat false dia jadi ngikutin time rdp lu
//semua tentang cron ada di google ok
// https://crontab.guru
// Enable scheduled option
scheduled: true,
// Define china timezone
timezone: 'Asia/Jakarta',
});
is scheduled message possible? what to use to make this work