Last active
August 1, 2024 12:49
-
-
Save Tarkiin/63b446486bb150d2b262661281b7ffd2 to your computer and use it in GitHub Desktop.
ima
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