discord-http.js is a discord wrapper library will help you get data from your discord bot without getting it online. It does not use websockets which means that this library is limited. Use discord.js to get full access to the discord api.
npm i discord-http.js --save
You just need to require this module and create an async function to await for the response, just like this:
const DiscordHttp = require('discord-http.js');
const client = new DiscordHttp.Client('Token Here');
async function getBotInfo() {
const user = client.getUser();
const username = await user.getUsername();
console.log("Username: %s", username)
}
getBotInfo().catch(console.error);
This is still work in progress. More to come.