Nurutomo / wabot-aq

WhatsApp Bot
GNU General Public License v3.0
694 stars 1.38k forks source link

getmsg.js #676

Closed Naruto010 closed 2 years ago

Naruto010 commented 3 years ago

How can I get the command without #getmsg

‏ Example: I added the command #addmsg hi and I want to use it just type hi without # and without getmsg just the word

and i want it with tag when i send hi like hi - hey there (tag)

unx21 commented 3 years ago

you better create a separate file where the bot will reply automatically without using the prefix # or .

Naruto010 commented 3 years ago

Can you teach me how to do it?

On Aug 8, 2021 at 9:29 AM, <unx21 @.***)> wrote:

you better create a separate file where the bot will reply automatically without using the prefix # or .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub (https://github.com/Nurutomo/wabot-aq/issues/676#issuecomment-894750762), or unsubscribe (https://github.com/notifications/unsubscribe-auth/AUY7J3SCKW7KEIZXC5C5HKLT3YP33ANCNFSM5BK2L6XQ). Triage notifications on the go with GitHub Mobile for iOS (https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675) or Android (https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email).

unx21 commented 3 years ago

Can you teach me how to do it? On Aug 8, 2021 at 9:29 AM, <unx21 @.***)> wrote: you better create a separate file where the bot will reply automatically without using the prefix # or . — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub (#676 (comment)), or unsubscribe (https://github.com/notifications/unsubscribe-auth/AUY7J3SCKW7KEIZXC5C5HKLT3YP33ANCNFSM5BK2L6XQ). Triage notifications on the go with GitHub Mobile for iOS (https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675) or Android (https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email).

let handler = async (m, { conn }) => { let name = conn.getName(m.sender) let pesan = Hii ${name}, Violet Heree conn.reply(m.chat, pesan, m) } handler.customPrefix = /Bot/ handler.command = new RegExp

module.exports = handler

Naruto010 commented 3 years ago

Sorry but it's not working

unx21 commented 3 years ago

Sorry but it's not working

I think it should work because I'm also using wabot-aq, sorry if my opinion doesn't help :")

Naruto010 commented 3 years ago

Can i get your num cuz I didn't understand very well

On Aug 8, 2021 at 12:11 PM, <Mzgmglf @.***)> wrote:

Can you teach me how to do it?

On Aug 8, 2021 at 9:29 AM, <unx21 @.***)> wrote:

you better create a separate file where the bot will reply automatically without using the prefix # or .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub (https://github.com/Nurutomo/wabot-aq/issues/676#issuecomment-894750762), or unsubscribe (https://github.com/notifications/unsubscribe-auth/AUY7J3SCKW7KEIZXC5C5HKLT3YP33ANCNFSM5BK2L6XQ). Triage notifications on the go with GitHub Mobile for iOS (https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675) or Android (https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email).

unx21 commented 3 years ago

Can i get your num cuz I didn't understand very well On Aug 8, 2021 at 12:11 PM, <Mzgmglf @.)> wrote: Can you teach me how to do it? > > On Aug 8, 2021 at 9:29 AM, <unx21 @.)> wrote: > > > > > > > > > you better create a separate file where the bot will reply automatically without using the prefix # or . > > > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub (#676 (comment)), or unsubscribe (https://github.com/notifications/unsubscribe-auth/AUY7J3SCKW7KEIZXC5C5HKLT3YP33ANCNFSM5BK2L6XQ). > Triage notifications on the go with GitHub Mobile for iOS (https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675) or Android (https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email). > > >

https://wa.me/qr/VJ2PLVAGHO4FG1