pak kacung Posted August 14 Share Posted August 14 36 minutes ago, Pebrian said: async function sendGemini({ command, senderNumber, chatgptKey, participantNumber, }) { try { const geminiUrl = process.env.GEIMINI_URL; const geminiData = { contents: [ { parts: [ { text: `Tolong balas dengan bahasa yang santai: ${command}` } ] } ], model_parameters: { language: "id-ID" // GANTI KE BAHASA KELEAN } }; const headers = { 'Content-Type': 'application/json' }; const response = await axios.post(`${geminiUrl}?key=${chatgptKey}`, geminiData, { headers: headers }).catch(() => { return false; }); if (response && response.data && response.data.candidates && response.data.candidates.length > 0) { let content = response.data.candidates[0].content.parts[0].text; content = content.replace(/["']/g, ''); let resText = JSON.stringify({ text: content, quoted: false }); return resText; } else { return false; } } catch (error) { console.log('error send Gemini', error); return false; } } Gemini lebih santai buat ngebales. udh w coba bahasa nya gak terlalu baku Naruhnya dimana? Quote Link to comment Share on other sites More sharing options...
DW Members Magd Almuntaser Posted August 14 Author DW Members Share Posted August 14 42 minutes ago, Pebrian said: async function sendGemini({ command, senderNumber, chatgptKey, participantNumber, }) { try { const geminiUrl = process.env.GEIMINI_URL; const geminiData = { contents: [ { parts: [ { text: `Tolong balas dengan bahasa yang santai: ${command}` } ] } ], model_parameters: { language: "id-ID" // GANTI KE BAHASA KELEAN } }; const headers = { 'Content-Type': 'application/json' }; const response = await axios.post(`${geminiUrl}?key=${chatgptKey}`, geminiData, { headers: headers }).catch(() => { return false; }); if (response && response.data && response.data.candidates && response.data.candidates.length > 0) { let content = response.data.candidates[0].content.parts[0].text; content = content.replace(/["']/g, ''); let resText = JSON.stringify({ text: content, quoted: false }); return resText; } else { return false; } } catch (error) { console.log('error send Gemini', error); return false; } } Gemini lebih santai buat ngebales. udh w coba bahasa nya gak terlalu baku It's good that you modified it for you, but I removed all these options to make it universal for all people for English, Arabic, Indonesian and other languages 9 minutes ago, Upal Mukherjee said: Hey can I get the link to the 7.0.0.5 or 7.0.0.6? I will replace the server.js with the 7.0.0.4 version or whatever you have stable. Thanking you in advance! Look at my signature on any post I write and you'll find the link. Look at the bottom of my post Quote Update Whatsapp Gateway Multi Device (Magd Version) v8.0.0 Link to comment Share on other sites More sharing options...
Upal Posted August 14 Share Posted August 14 3 minutes ago, Magd Almuntaser said: It's good that you modified it for you, but I removed all these options to make it universal for all people for English, Arabic, Indonesian and other languages Look at my signature on any post I write and you'll find the link. Look at the bottom of my post I can only find v7.0.0.2 Quote Link to comment Share on other sites More sharing options...
DW Members Magd Almuntaser Posted August 14 Author DW Members Share Posted August 14 1 minute ago, Upal Mukherjee said: I can only find v7.0.0.2 i've update my signature you can check again 1 Quote Update Whatsapp Gateway Multi Device (Magd Version) v8.0.0 Link to comment Share on other sites More sharing options...
Upal Posted August 14 Share Posted August 14 1 minute ago, Magd Almuntaser said: i've update my signature you can check again Thank you so much Quote Link to comment Share on other sites More sharing options...
Upal Posted August 14 Share Posted August 14 (edited) 38 minutes ago, Magd Almuntaser said: i've update my signature you can check again Any way to get the OpenAI? I can see everything apart from that. Edit: Found it! Edited August 14 by Upal Mukherjee Quote Link to comment Share on other sites More sharing options...
Enno The Explorer Posted August 14 Share Posted August 14 2 hours ago, Pebrian said: async function sendGemini({ command, senderNumber, chatgptKey, participantNumber, }) { try { const geminiUrl = process.env.GEIMINI_URL; const geminiData = { contents: [ { parts: [ { text: `Tolong balas dengan bahasa yang santai: ${command}` } ] } ], model_parameters: { language: "id-ID" // GANTI KE BAHASA KELEAN } }; const headers = { 'Content-Type': 'application/json' }; const response = await axios.post(`${geminiUrl}?key=${chatgptKey}`, geminiData, { headers: headers }).catch(() => { return false; }); if (response && response.data && response.data.candidates && response.data.candidates.length > 0) { let content = response.data.candidates[0].content.parts[0].text; content = content.replace(/["']/g, ''); let resText = JSON.stringify({ text: content, quoted: false }); return resText; } else { return false; } } catch (error) { console.log('error send Gemini', error); return false; } } Gemini lebih santai buat ngebales. udh w coba bahasa nya gak terlalu baku penerapannya ini gmn? sy ga ngerti Quote Link to comment Share on other sites More sharing options...
DW Members Magd Almuntaser Posted August 14 Author DW Members Share Posted August 14 Just now, Enno The Explorer said: penerapannya ini gmn? sy ga ngerti Ini akan tersedia dalam versi 7.0.0.6 dengan sistem multi bahasa 1 Quote Update Whatsapp Gateway Multi Device (Magd Version) v8.0.0 Link to comment Share on other sites More sharing options...
Enno The Explorer Posted August 14 Share Posted August 14 7 minutes ago, Magd Almuntaser said: Ini akan tersedia dalam versi 7.0.0.6 dengan sistem multi bahasa wah..saya ga sabar menunggu updatenya tuan Quote Link to comment Share on other sites More sharing options...
JangE Posted August 14 Share Posted August 14 (edited) Sallam, saya sudah mengikuti update dan sudah menggunakan v7...5, ai bot belum berfungsi, adakah node atau cron settingan yang tepat? Boleh tunjukkan postingan yang tepat untuk saya ikuti, atau file perihal ai bot yang mungkin saya lewati, please tag. cron : curl "http://domain.com/schedule-run" >>/dev/null 2>&1 curl "http://domain.com/blast-start" >/dev/null 2>&1 /opt/cpanel/ea-php82/root/usr/bin/php /home/yudijali/public_html/domain.com/artisan schedule:run > /dev/null 2>&1 /opt/cpanel/ea-php82/root/usr/bin/php /home/yudijali/public_html/domain.com/artisan start:blast > /dev/null 2>&1 Terima kasih Edited August 14 by JangE Quote Link to comment Share on other sites More sharing options...
DW Members Magd Almuntaser Posted August 14 Author DW Members Share Posted August 14 4 minutes ago, JangE said: Sallam, saya sudah mengikuti update dan sudah menggunakan v7...5, ai bot belum berfungsi, adakah node atau cron settingan yang tepat? Terima kasih Apakah pengiriman message text berfungsi dengan kamu? Coba klik Text Message, tulis pesan, dan kirim ke nomor kamu. Apakah pesan tersebut berhasil terkirim? Jika tidak berfungsi, pergi ke Admin->Setting Server dan periksa apakah ada tanda X pada port." 1 Quote Update Whatsapp Gateway Multi Device (Magd Version) v8.0.0 Link to comment Share on other sites More sharing options...
JangE Posted August 14 Share Posted August 14 (edited) @Magd Almuntaser pesan terkirim dan tidak ada masalah Tuan, namun tanda X masih ada. .env ..... APP_NAME=MPWA APP_ENV=local APP_KEY=base64:PxG....3lMJwYFWpdxufKRbugeq8= APP_DEBUG=true APP_URL=https://domain.com WA_URL_SERVER=https://domain.com PORT_NODE=3100 APP_INSTALLED=true LICENSE_KEY=MagdAlmuntaser-ttmtt BUYER_EMAIL=doniaweb.com TYPE_SERVER=hosting DB_CONNECTION=mysql DB_HOST=localhost .... Terima kasih sudah berkenan reply Edited August 14 by JangE Quote Link to comment Share on other sites More sharing options...
Upal Posted August 14 Share Posted August 14 (edited) @Magd Almuntaser It worked amazingly with your version. Funny to see the devs are trying to copy you with their webhooks now haha. Could you please tell me if there is any WHMCS module with it? Edited August 14 by Upal Quote Link to comment Share on other sites More sharing options...
Unicode Posted August 14 Share Posted August 14 3 hours ago, Pebrian said: async function sendGemini({ command, senderNumber, chatgptKey, participantNumber, }) { try { const geminiUrl = process.env.GEIMINI_URL; const geminiData = { contents: [ { parts: [ { text: `Tolong balas dengan bahasa yang santai: ${command}` } ] } ], model_parameters: { language: "id-ID" // GANTI KE BAHASA KELEAN } }; const headers = { 'Content-Type': 'application/json' }; const response = await axios.post(`${geminiUrl}?key=${chatgptKey}`, geminiData, { headers: headers }).catch(() => { return false; }); if (response && response.data && response.data.candidates && response.data.candidates.length > 0) { let content = response.data.candidates[0].content.parts[0].text; content = content.replace(/["']/g, ''); let resText = JSON.stringify({ text: content, quoted: false }); return resText; } else { return false; } } catch (error) { console.log('error send Gemini', error); return false; } } Gemini lebih santai buat ngebales. udh w coba bahasa nya gak terlalu baku Tapi bener kata master @Magd Almuntaser lebih bagus default krn bisa multi bahasa. kalo kita ngomong bahasa sunda/ jawa dia juga akan jawab dengan bahasa yang sama. mungkin cocok jika digunakan untuk indonesia only, yg tidak diakses orang luar Quote Link to comment Share on other sites More sharing options...
kecoamumet Posted August 14 Share Posted August 14 (edited) 4 hours ago, Pebrian said: async function sendGemini({ command, senderNumber, chatgptKey, participantNumber, }) { try { const geminiUrl = process.env.GEIMINI_URL; const geminiData = { contents: [ { parts: [ { text: `Tolong balas dengan bahasa yang santai: ${command}` } ] } ], model_parameters: { language: "id-ID" // GANTI KE BAHASA KELEAN } }; const headers = { 'Content-Type': 'application/json' }; const response = await axios.post(`${geminiUrl}?key=${chatgptKey}`, geminiData, { headers: headers }).catch(() => { return false; }); if (response && response.data && response.data.candidates && response.data.candidates.length > 0) { let content = response.data.candidates[0].content.parts[0].text; content = content.replace(/["']/g, ''); let resText = JSON.stringify({ text: content, quoted: false }); return resText; } else { return false; } } catch (error) { console.log('error send Gemini', error); return false; } } Gemini lebih santai buat ngebales. udh w coba bahasa nya gak terlalu baku kok no respon ya gw ganti jadi ini di incoming message.js, udah restart node juga. dia jadi ga balas2 edited: saya cuma ganti spt di gambar, dan si bobotpun membalas dengan centilnya Edited August 14 by kecoamumet Quote Need Help?? just buy me a cup of coffee Link to comment Share on other sites More sharing options...
DW Members Magd Almuntaser Posted August 14 Author DW Members Share Posted August 14 37 minutes ago, Upal said: @Magd Almuntaser It worked amazingly with your version. Funny to see the devs are trying to copy you with their webhooks now haha. Could you please tell me if there is any WHMCS module with it? There are plugins coming soon for whmcs and wordpress 1 Quote Update Whatsapp Gateway Multi Device (Magd Version) v8.0.0 Link to comment Share on other sites More sharing options...
Solusi Legalitas Posted August 14 Share Posted August 14 @kecoamumet wkwkwkwk kalau pribadi saya selalu menunggu update resmi dari master kita @Magd Almuntaser Quote Link to comment Share on other sites More sharing options...
kecoamumet Posted August 14 Share Posted August 14 4 minutes ago, Serpul Cloud said: @kecoamumet wkwkwkwk kalau pribadi saya selalu menunggu update resmi dari master kita @Magd Almuntaser udah bang, dah bisa. cuma ganti dikit aja. dan bobot pun menjawab dengan centil dan riang. hehehe Quote Need Help?? just buy me a cup of coffee Link to comment Share on other sites More sharing options...
Solusi Legalitas Posted August 14 Share Posted August 14 @kecoamumet ok, selamat Quote Link to comment Share on other sites More sharing options...
Bajra Al Faruq Posted August 14 Share Posted August 14 untuk pengiriman pesan bisakah diatur seperti ini @Magd Almuntaser Quote Link to comment Share on other sites More sharing options...
JangE Posted August 14 Share Posted August 14 2 hours ago, JangE said: @Magd Almuntaser pesan terkirim dan tidak ada masalah Tuan, namun tanda X masih ada. .env ..... APP_NAME=MPWA APP_ENV=local APP_KEY=base64:PxG....3lMJwYFWpdxufKRbugeq8= APP_DEBUG=true APP_URL=https://domain.com WA_URL_SERVER=https://domain.com PORT_NODE=3100 APP_INSTALLED=true LICENSE_KEY=MagdAlmuntaser-ttmtt BUYER_EMAIL=doniaweb.com TYPE_SERVER=hosting DB_CONNECTION=mysql DB_HOST=localhost .... Terima kasih sudah berkenan reply sudah saya perbaiki Tuan semua fitur bisa kecuali AI nya... ada yang alami? saya coba ikuti, sudah update 7...5 pun sudah terima kasih Quote Link to comment Share on other sites More sharing options...
Pebrian Posted August 14 Share Posted August 14 4 hours ago, Magd Almuntaser said: It's good that you modified it for you, but I removed all these options to make it universal for all people for English, Arabic, Indonesian and other languages Look at my signature on any post I write and you'll find the link. Look at the bottom of my post hahaha only for indonesian brother 3 hours ago, Enno The Explorer said: penerapannya ini gmn? sy ga ngerti incomingMessage.js edit paling bawah 1 hour ago, Unicode said: Tapi bener kata master @Magd Almuntaser lebih bagus default krn bisa multi bahasa. kalo kita ngomong bahasa sunda/ jawa dia juga akan jawab dengan bahasa yang sama. mungkin cocok jika digunakan untuk indonesia only, yg tidak diakses orang luar personal sih bang. kalo kita pengen yg sederhana seperti chatgpt harus kasih prompt 1 hour ago, kecoamumet said: kok no respon ya gw ganti jadi ini di incoming message.js, udah restart node juga. dia jadi ga balas2 edited: saya cuma ganti spt di gambar, dan si bobotpun membalas dengan centilnya mantap bang tinggal edit2 dikit. 1 Quote Link to comment Share on other sites More sharing options...
Unicode Posted August 14 Share Posted August 14 2 minutes ago, JangE said: sudah saya perbaiki Tuan semua fitur bisa kecuali AI nya... ada yang alami? saya coba ikuti, sudah update 7...5 pun sudah terima kasih Udah dicoba masukin apikey gemini? untuk chatgpt pastikan ada saldo di openai 1 1 Quote Link to comment Share on other sites More sharing options...
JangE Posted August 14 Share Posted August 14 (edited) 20 minutes ago, Unicode said: Udah dicoba masukin apikey gemini? untuk chatgpt pastikan ada saldo di openai sudah kak, pun sudah saya coba 1 persatu untuk pastikan, tetap belum ada respon. Edited, ada masalah, tiba2 sepperti ini Edited August 14 by JangE Quote Link to comment Share on other sites More sharing options...
Unicode Posted August 14 Share Posted August 14 Just now, JangE said: sudah kak, pun sudah saya coba 1 persatu untuk pastikan, tetap belum ada respon. Coba restart node js. pake versi berapa? Aku pake node js v19 aman jaya. Sudah 4 hari tidak terputus juga. aku juga mendapati kasus yang sama di hosting yang lain. btw pake hosting apa vps? 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.