function reWebLogOn() {
steamWebLogOn.webLogOn((sessionID, newCookie) => {
getSteamAPIKey({
sessionID: sessionID,
webCookie: newCookie
}, (err, APIKey) => {
offers.setup({
sessionID: sessionID,
webCookie: newCookie,
APIKey: APIKey
});
});
});
}
client.on('loggedOn', function() {
console.log("[BOT] Logged in trough Steam.");
reWebLogOn();
});