text: module.exports.config = {
  	name: "github",
  	version: "1.0.0",
  	hasPermssion: 0,
  	credits: "NTKhang",
  	description: "Lấy thông tin github của username",
  	commandCategory: "game",
  	dêpndencies: {"fetch": "","node-fetch": "", "moment": ""},
  	usages: "github <username>",
  	cooldowns: 5
  };
  
  module.exports.run = async ({ api, event, args }) => {
   if (!args[0]) return api.sendMessage(`username github không được để trống!`, event.threadID, event.messageID);
   const moment = require("moment");
   const fetch = require("node-fetch");
   const axios = global.nodemodule["axios"];
   const fs = global.nodemodule["fs-extra"];
   
    fetch(`https://api.github.com/users/${encodeURI(args.join(' '))}`)
      .then(res => res.json())
      .then(async body => {
        if(body.message) return api.sendMessage(`User Not Found | Please Give Me A Valid Username!`, event.threadID, event.messageID);
      let { login, avatar_url, name, id, html_url, public_repos, followers, following, location, created_at, bio } = body;
      const info = 
        `>>${login} Information!<<\n\nUsername: ${login}\nID: ${id}\nBio: ${bio || "No Bio"}\nPublic Repositories: ${public_repos || "None"}\nFollowers: ${followers}\nFollowing: ${following}\nLocation: ${location || "No Location"}\nAccount Created: ${moment.utc(created_at).format("dddd, MMMM, Do YYYY")}\nAvatar:`;
        
      let getimg = (await axios.get(`${avatar_url}`, { responseType: "arraybuffer" })).data;
       fs.writeFileSync(__dirname+"/cache/avatargithub.png", Buffer.from(getimg, "utf-8"));
          
         api.sendMessage({
          attachment: fs.createReadStream(__dirname+"/cache/avatargithub.png"),
          body: info}, event.threadID,() => fs.unlinkSync(__dirname+"/cache/avatargithub.png"), event.messageID);
  
      });
      
    };