You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: This isn't the entire script, cut out some unnecessary lines
create() code OR full CLI command + CONFIG
const configObject = {
sessionId: 'Ameca_13120241940',
authTimeout: 60,
autoRefresh: true,
cacheEnabled: true,
useChrome: true,
chromiumArgs: ['--no-sandbox'],
disableSpins: true,
headless: false,
qrRefreshS: 40,
qrTimeout: 0,
messagePreprocessor: "AUTO_DECRYPT",
linkParser: "https://link.openwa.cloud/api",
restartOnCrash: 'start',
debug: false,
logInternalEvents: false, //ONLY TURN THIS ON IF ASKED TO!
logConsoleErrors: false,
discord: '234717932175884288',
ezqr: true,
//intervalCap: 5, //process 5 events
//interval: 1000, //within every 1 second window
//concurrency: 2, //make sure to process, at most, 2 events at any one time
//timeout: 1000, //make sure there is a 100ms gap between each event processing.
//carryoverConcurrencyCount: true //If there are more than 5 events in that period, process them within the next 3 second period. Make sure this is always set to true!!!
};
console.log([${colors.white.bold(message.chat.name)}] ${MessageTime} ${colors.blue(message.notifyName)}: ${colors.whiteBright.italic(message.body)});
See below:
[Regular group] 0:38:27 Thomas van Amelsvoort: Test 123 (This line is a console.log(), see above)
TypeError: Cannot destructure property 'name' of '(intermediate value)' as it is undefined.
at module.exports [as messageHandler] (C:\Users\TomVa\Documents\Ameca OpenWA4.67.0 NodeJS18.16.0 Puppeteer21.6.1 Betaaa\handler\messageHandler.js:63:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
PS C:\Users\TomVa\Documents\Ameca OpenWA4.67.0 NodeJS18.16.0 Puppeteer21.6.1 Betaaa>
Anything else?
Appreciate all the work you've put into wa-automate! Keep up the good work captain <3
The text was updated successfully, but these errors were encountered:
Are you using the latest version of the library?
What type of session are you experiencing this issue on?
Multi-device and I have set multiDevice to true in my config OR am using the --multi-device flag
What type of host account are you experiencing this issue on?
Personal account (normal)
Mode
EASY API/CLI
Current Behavior
Whenever a message comes in
Client.onMessage(async (message) => {
, it cannot read the property's of messages.Expected Behavior
It is expected to retrieve the property's.
Steps To Reproduce
Note: This isn't the entire script, cut out some unnecessary lines
create() code OR full CLI command + CONFIG
DEBUG INFO
Environment
Screenshots/Logs
console.log(
[${colors.white.bold(message.chat.name)}] ${MessageTime} ${colors.blue(message.notifyName)}: ${colors.whiteBright.italic(message.body)}
);See below:
Anything else?
Appreciate all the work you've put into wa-automate! Keep up the good work captain <3
The text was updated successfully, but these errors were encountered: