Spaces:
Paused
Paused
πππ₯π₯πππ π π¨ππππ₯π β‘
βοΈ SUBZERO MD V 1.0.3 βοΈ
c1dc9d9 unverified | /* | |
| $$$$$$\ $$\ | |
| $$ __$$\ $$ | | |
| $$ / \__|$$\ $$\ $$$$$$$\ $$$$$$$$\ $$$$$$\ $$$$$$\ $$$$$$\ | |
| \$$$$$$\ $$ | $$ |$$ __$$\ \____$$ |$$ __$$\ $$ __$$\ $$ __$$\ | |
| \____$$\ $$ | $$ |$$ | $$ | $$$$ _/ $$$$$$$$ |$$ | \__|$$ / $$ | | |
| $$\ $$ |$$ | $$ |$$ | $$ | $$ _/ $$ ____|$$ | $$ | $$ | | |
| \$$$$$$ |\$$$$$$ |$$$$$$$ |$$$$$$$$\ \$$$$$$$\ $$ | \$$$$$$ | | |
| \______/ \______/ \_______/ \________| \_______|\__| \______/ | |
| Project Name : SubZero MD | |
| Creator : Darrell Mucheri ( Mr Frank OFC ) | |
| Repo : https//github.com/mrfrank-ofc/SUBZERO-MD | |
| Support : wa.me/18062212660 | |
| */ | |
| const axios = require('axios'); | |
| const config = require('../config'); | |
| const { cmd, commands } = require('../command'); | |
| cmd({ | |
| pattern: "githubstalk", | |
| desc: "Fetch detailed GitHub user profile including profile picture.", | |
| category: "menu", | |
| react: "π₯οΈ", | |
| filename: __filename | |
| }, | |
| async (conn, mek, m, { from, quoted, body, isCmd, command, args, q, isGroup, sender, senderNumber, botNumber2, botNumber, pushname, isMe, isOwner, groupMetadata, groupName, participants, groupAdmins, isBotAdmins, isAdmins, reply }) => { | |
| try { | |
| const username = args[0]; | |
| if (!username) { | |
| return reply("Please provide a GitHub username. "); | |
| } | |
| const apiUrl = `https://api.github.com/users/${username}`; | |
| const response = await axios.get(apiUrl); | |
| const data = response.data; | |
| let userInfo = `π€ *Username*: ${data.name || data.login} | |
| π *Github Url*:(${data.html_url}) | |
| π *Bio*: ${data.bio || 'Not available'} | |
| ποΈ *Location*: ${data.location || 'Unknown'} | |
| π *Public Repos*: ${data.public_repos} | |
| π₯ *Followers*: ${data.followers} | Following: ${data.following} | |
| π *Created At*: ${new Date(data.created_at).toDateString()} | |
| π *Public Gists*: ${data.public_gists} | |
| > Β© α΄α΄α΄‘α΄Κα΄α΄ ΚΚ MΚ FΚα΄Ι΄α΄`; | |
| const sentMsg = await conn.sendMessage(from,{image:{url: data.avatar_url },caption: userInfo },{quoted:mek }) | |
| } catch (e) { | |
| console.log(e); | |
| reply(`error: ${e.response ? e.response.data.message : e.message}`); | |
| } | |
| }); | |
| // jawad tech x | |