Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (message.content === prefix + "ipinfo")
- if (message.deletable) message.delete();
- let args = message.content.split(" ").slice(1);
- var ipAddress = args;
- ipInfo(ipAddress, (err, cLoc) => {
- if(err) {
- console.log(err)
- message.channel.send(":x:Erreur...")
- } else {
- 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 + "```");
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement