Skip to content

Instantly share code, notes, and snippets.

@souravkl11
Last active December 18, 2022 05:46
Show Gist options
  • Save souravkl11/e2ab055f2ff448f6f7b90fbc9ebd2929 to your computer and use it in GitHub Desktop.
Save souravkl11/e2ab055f2ff448f6f7b90fbc9ebd2929 to your computer and use it in GitHub Desktop.
const e = require('../events');
const a = require('axios');
const {MessageType,Mimetype} = require('@adiwajshing/baileys');
e.addCommand({pattern: 'getip', fromMe: true}, (async (m, k) => {
var l = await a('https://raganork-server.herokuapp.com/api/getip')
await m.client.sendMessage(m.jid,l.data.ip,MessageType.text)}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment