Report Need help in node-steamcommunity Posted November 30, 2020 const SteamUser = require('steam-user'); const SteamTotp = require('steam-totp'); const SteamCommunity = require('steamcommunity'); const TradeOfferManager = require('steam-tradeoffer-manager'); const SteamApiGetInterface = require('steam-web-api'); const config = require('./config'); const client = new SteamUser(); let community = new SteamCommunity(); const manager = new TradeOfferManager({ steam: client, community: community, language: 'en' }); const logInOptions = { accountName: config.accountName, password: config.password, }; client.logOn(logInOptions); client.on('loggedOn', () => { console.log("Ulogovan"); }); function hi() {community.getWebApiKey('http://localhost:3000/', (err, key) => {console.log(err)})}; setTimeout(hi, 10000);
Report TypeError: callback is not a function on loggedIn event in node-steamcommunity Posted November 30, 2020 · Edited November 30, 2020 by stefke I don't understand. How to supply callback? What to add?
Need help
in node-steamcommunity
Posted