Closed kresnaputra closed 4 years ago
please share your create code @kresnaputra
@github-actions run
e267ece
9628a28
client.refresh()
#582 bc997c5
5abc74b
ExposedFn
with SimpleListener
#588 cb2e132
279f202
AvailableWebhooks
to SimpleListener
#588 a226e80
onAck
from middleware to client #588 c058eee
onMessage
from middleware to client #588 2320773
63e5794
SimpleListener
#588 bb10f61
onAnyMessage
from middleware to client #588 8e811f6
e19c5d3
411ab28
14904d4
cfcb136
eb647ee
please share your create code @kresnaputra
const format = require("date-fns/format"); const wa = require("@open-wa/wa-automate"); const dotenv = require("dotenv"); dotenv.config();
const MEGA = process.env.PHONE_NUMBER;
wa.create().then((client) => start(client));
function calculationTime(client) { setInterval(() => { if (format(new Date(), "k m s") === "7 0 0") { client.sendText(MEGA, "Hello"); } }, 1000); }
function replyMega(message, client) { if (message.body.toLocaleLowerCase().includes("Test")) client.sendText(MEGA, "Testing"); }
function start(client) { calculationTime(client);
client.onMessage((message) => { // Checking if sender is mega if (message.from === MEGA) { replyMega(message, client); } }); }
I already updated to newest version '1.9.88', after updated i got some error but the log come after "Passed Integrity Test"
wa.create({}).then((client)
@github-actions run
Should be fixed now
Should be fixed now
Thanks, it's work like charm now
Describe the bug I try to running with simple code as showing in the Readme.md. But I got stuck after WAPI Reinjected.
Expected behavior Can running simple usage example like on Readme.md
DEBUG INFO (node:2869) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'safeMode' of undefined at Object. (/home/gevanni/Documents/Development/NodeJS/AutoTexting/node_modules/@open-wa/wa-automate/dist/controllers/initializer.js:240:33)
at step (/home/gevanni/Documents/Development/NodeJS/AutoTexting/node_modules/@open-wa/wa-automate/dist/controllers/initializer.js:63:23)
at Object.next (/home/gevanni/Documents/Development/NodeJS/AutoTexting/node_modules/@open-wa/wa-automate/dist/controllers/initializer.js:44:53)
at fulfilled (/home/gevanni/Documents/Development/NodeJS/AutoTexting/node_modules/@open-wa/wa-automate/dist/controllers/initializer.js:35:58)
at process._tickCallback (internal/process/next_tick.js:68:7)
(node:2869) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:2869) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Host (please complete the following information):