Skip to content

Instantly share code, notes, and snippets.

@Tarkiin
Created August 1, 2024 14:24
Show Gist options
  • Save Tarkiin/09b4b1d45c254046a9d5e18cf2aac419 to your computer and use it in GitHub Desktop.
Save Tarkiin/09b4b1d45c254046a9d5e18cf2aac419 to your computer and use it in GitHub Desktop.
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