Advertisement
REDLIGHT

Untitled

May 26th, 2020
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. if (message.content === prefix + "ipinfo")
  2. if (message.deletable) message.delete();
  3.  
  4. let args = message.content.split(" ").slice(1);
  5.  
  6. var ipAddress = args;
  7.  
  8. ipInfo(ipAddress, (err, cLoc) => {
  9. if(err) {
  10. console.log(err)
  11. message.channel.send(":x:Erreur...")
  12. } else {
  13. message.edit("```RESULTS FOR IP:" + cLoc.ip + " ```" + "```\nhost: " + cLoc.hostname + "\ncity: " + cLoc.city + "\nregion: " + cLoc.region + "\ncountry: " + cLoc.country + "\ncountry_name: " + cLoc.country_name + "\npostal: " + cLoc.postal + "\nlatitude: " + cLoc.loc + "\nlocalisation: " + cLoc.org + "```");
  14. }
  15. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement