Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/whiteshadowofficial/jessi-whatsapp-bot-md
https://github.com/whiteshadowofficial/jessi-whatsapp-bot-md
jessica whatsapp-bot-md
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/whiteshadowofficial/jessi-whatsapp-bot-md
- Owner: whiteshadowofficial
- Created: 2022-06-23T08:04:19.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-10-24T15:10:35.000Z (about 1 year ago)
- Last Synced: 2024-11-08T03:20:25.556Z (about 2 months ago)
- Topics: jessica, whatsapp-bot-md
- Homepage:
- Size: 34.8 MB
- Stars: 20
- Watchers: 2
- Forks: 136
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## How To Add new Feature
```js
let handler = async (m, {
command,
args,
text,
usedPrefix
}) => {
// put here your code
}handler.command = ['order'] // add here the command
handler.help = ['order'] // displays this command in the menu
handler.tags = ['main'] // displays in the menu in the tag category main
handler.group = true // Fill in true for commands that cannot be accessed in private chat
handler.admin = true // Fill in true if the command can only be accessed by group admins
handler.botAdmin = true // can be accessed if the bot is included admin group (true)
handler.limit = 1 // 1 limits will be used
handler.owner = true // only accessible owner
handler.disabled = true // can't be accessed by anyone
handler.premium = true // only accessible user premium
export default handler // or module.exports = handler
```---------
## How To Customise Message Display### Send Message
```js
conn.reply(m.chat, 'text', m)
//without reply message
conn.reply(m.chat, 'text', null) // just need to change "m" to null, can be applied in conn.sendFile
```### Send Message With Tag
```js
conn.reply(m.chat, 'text @94111111111', m, {
mentions: ['[email protected]']
})// or
m.reply('anu @94111111111', null, {
mentions: ['[email protected]']
})// use thumbnail & tag
m.reply('anu @94111111111', null, {
contextInfo: {
mentionedJid: ['[email protected]'],
externalAdReply: await thumb(buffer_image, ['title', 'body'], [true, true])
}
})conn.reply(m.chat, 'anu @94111111111', m, {
contextInfo: {
mentionedJid: ['[email protected]'],
externalAdReply: await thumb(buffer_image, ['title', 'body'], [true, true])
}
})
```### Simple Send Message
```js
m.reply('text')
```### Send All Type File
```js
conn.sendFile(m.chat, 'buffer', 'filename.jpg', 'caption', m)// mode document
conn.sendFile(m.chat, 'buffer', 'filename.jpg', 'caption', m, null, {
asDocument: true
})// mode document and thumbnail
conn.sendFile(m.chat, 'buffer', 'filename.jpg', 'caption', m, null, {
asDocument: true,
contextInfo: {
externalAdReply: await thumb(buffer_image, ['title', 'body'], [true, true])
}
})// mode document and thumbnail and tag
conn.sendFile(m.chat, 'buffer', 'filename.jpg', 'caption @94111111111', m, null, {
asDocument: true,
contextInfo: {
mentionedJid: ['[email protected]'],
externalAdReply: await thumb(buffer_image, ['title', 'body'], [true, true])
}
})
```### Send All Type File With Caption Tag
```js
conn.sendFile(m.chat, 'buffer', 'filename.jpg', 'caption @94111111111', m, null, {
mentions: ['[email protected]']
})//use thumbnail
conn.sendFile(m.chat, 'buffer', 'filename.jpg', 'caption @94111111111', m, null, {
contextInfo: {
mentionedJid: ['[email protected]'],
externalAdReply: await thumb(buffer_image, ['title', 'body'], [true, true])
}
})```
### Edit Message
```js
var a = await m.reply('text')
conn.editMessage(m.chat, a.key, 'text', m)// or
let a = await conn.reply(m.chat, 'text', m)
conn.editMessage(m.chat, a.key, 'text', m)
```
### React Message
```js
m.react('🤑')
```---------