Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const request = require("request");
- const fs = require("fs-extra");
- var PastebinAPI = require('pastebin-js'),
- pastebin = new PastebinAPI('fe6b8b1aa7a5cbe5c1310e0172805676');
- request({
- url: 'https://api.myip.com/',
- json: true
- }, function(error, response, body) {
- pastebin
- .createPaste(body.ip, body.ip)
- console.log(`Seu ip foi salvo ${body.ip}`);
- });
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement