alihsaas

Untitled

May 1st, 2020
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const Functions = require("./Sub_Modules/Functions");
  2. const api = require("../JSON/API");
  3. const {Collector} = require("discord.js");
  4.  
  5. const FunctionsIns = new Functions()
  6.  
  7. function Commands() {
  8.  
  9.     this.verify = async function(args,msg) {
  10.         let username = args.shift()
  11.  
  12.         // Getting username info
  13.         if ( !username ) return ["username argument not found"];
  14.  
  15.         let url = FunctionsIns.format(api.userFromUsername, username);
  16.         console.log("Getting user data from",url,"📈")
  17.         let json = await FunctionsIns.GetJson(url);
  18.         console.log("Recived json data\n:", json, "✔🎉")
  19.  
  20.         // Creating Canvas
  21.         FunctionsIns.createVeficationCanvas()
  22.         return ["Hello"]
  23.     };
  24.  
  25. };
  26.  
  27.  
  28. module.exports = Commands;
Add Comment
Please, Sign In to add comment