Created
August 1, 2024 14:24
-
-
Save Tarkiin/09b4b1d45c254046a9d5e18cf2aac419 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { bot } = require('../lib/'); | |
bot( | |
{ | |
pattern: 'ima', | |
fromMe: true, | |
desc: 'Says Hello and sends a specific image', | |
type: 'misc', | |
}, | |
async (message, match) => { | |
// Send "Hello" message | |
await message.send('Hello'); | |
// Send the image directly from URL | |
await message.sendFromUrl('https://cdn.pixabay.com/photo/2024/07/11/14/29/bee-8888442_1280.jpg'); | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment