Last active
December 18, 2022 05:46
-
-
Save souravkl11/e2ab055f2ff448f6f7b90fbc9ebd2929 to your computer and use it in GitHub Desktop.
This file contains 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 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