Jump to content

Recommended Posts

@Magd Almuntaser hi bro. the webhook didnt work. could u fix it? i find the webhook script is in his github

 

https://github.com/Ilmans/webhook-wamp-example/tree/master

 

error from node is like this

2023-08-21T10:20:37: SyntaxError: Unexpected token o in JSON at position 1
2023-08-21T10:20:37:     at JSON.parse (<anonymous>)
2023-08-21T10:20:37:     at IncomingMessage (/www/wwwroot/xxxx/server/controllers/incomingMessage.js:84:54)
2023-08-21T10:20:37:     at processTicksAndRejections (node:internal/process/task_queues:96:5)

edited:

if using original incomingmessage.js the webhook works. but the autoreply not work

Edited by kecoamumet

coffee

Need Help?? just buy me a cup of coffee

  • DW Members
20 hours ago, kecoamumet said:

@Magd Almuntaser hi bro. the webhook didnt work. could u fix it? i find the webhook script is in his github

 

https://github.com/Ilmans/webhook-wamp-example/tree/master

 

error from node is like this

2023-08-21T10:20:37: SyntaxError: Unexpected token o in JSON at position 1
2023-08-21T10:20:37:     at JSON.parse (<anonymous>)
2023-08-21T10:20:37:     at IncomingMessage (/www/wwwroot/xxxx/server/controllers/incomingMessage.js:84:54)
2023-08-21T10:20:37:     at processTicksAndRejections (node:internal/process/task_queues:96:5)

edited:

if using original incomingmessage.js the webhook works. but the autoreply not work

Yes i test this yesterday and not working for webhook .. so we can play with the file in webhook becouse it's old method not updated .. i will try to fix it

Edit: i forget to tell you the webhook is very old .. don't use it if your number have group becouse you can't select the reply to presonal or group .. so when you start webhook will send many msg to all conversions and groups .. i don't like it ..

Edited by Magd Almuntaser
23 minutes ago, Magd Almuntaser said:

Yes i test this yesterday and not working for webhook .. so we can play with the file in webhook becouse it's old method not updated .. i will try to fix it

Edit: i forget to tell you the webhook is very old .. don't use it if your number have group becouse you can't select the reply to presonal or group .. so when you start webhook will send many msg to all conversions and groups .. i don't like it ..

Ooo.. ok.. ty for the reply. Will not use webhook anymore

coffee

Need Help?? just buy me a cup of coffee

  • DW Members
1 hour ago, ashoksingh shekhawat said:

@Magd Almuntaser  Sir please provide commands for all crons to run in web hosting. 
1.CheckSubscription
2.ScheduleCron
3.StartBlast


1- open your cpanel and go to Cronjob:
image.png.f8782139297cd151f2d0ee9c88f5017e.png 

 

2- put this command inside (command) in your cronjob and select (Once Per Minute) and click (add new cron job) :
 

/opt/alt/php81/usr/bin/php /home/kiny7639/public_html/hokistore.my.id/artisan schedule:run >/dev/null 2>&1



image.png.3a3659c60a930223b7d44f0da4ce70d6.png

3- and add this command again:
 

/opt/alt/php81/usr/bin/php /home/kiny7639/public_html/hokistore.my.id/artisan start:blast >/dev/null 2>&1

 


i thknk your php path is /opt/alt/php81/usr/bin/php you can check if this is the right path or not when run this command in SSH:
 

/opt/alt/php81/usr/bin/php -v

and see if give you the php version

 

Edited by Magd Almuntaser
  • Like 1
  • Care 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
  • Create New...