Skip to content

Instantly share code, notes, and snippets.

@mrlinux007
Last active September 29, 2022 18:08
Show Gist options
  • Select an option

  • Save mrlinux007/2b6aaad95f2cbde9d383673c8b332989 to your computer and use it in GitHub Desktop.

Select an option

Save mrlinux007/2b6aaad95f2cbde9d383673c8b332989 to your computer and use it in GitHub Desktop.
const {Function,isPublic} = require("../lib/");
Function({pattern: 'sponge ?(.*)', fromMe: isPublic, desc: 'self mention', type: 'gfx'}, async (m, text, client) => {
try{
if(!text) return await m.reply("Give me url");
await client.sendMessage(m.chat,{ image: { url : `https://fatiharridho.herokuapp.com/api/canvas/spongebob?bg=${text}`}});
} catch (e) { m.reply(`${e}`)}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment