inspectItem doesn't return anything
See original GitHub issueHi, I have the following code, but the csgo.inspectItem doesn’t respond at all. I would really appreciate it if you could help me out:
`import { NestFactory } from ‘@nestjs/core’; import { AppModule } from ‘./app.module’;
const SteamUser = require(‘steam-user’); const GlobalOffensive = require(‘globaloffensive’);
async function bootstrap() { const app = await NestFactory.create(AppModule, { cors: true });
await app.listen(3000);
let user = new SteamUser(); let csgo = new GlobalOffensive(user);
user.logOn({ accountName: ‘myusername’, password: ‘mypassword’, });
user.on(‘loggedOn’, function(details) {
user.gamesPlayed(730);
csgo.on('connectedToGC', () => {
if (csgo.haveGCSession) {
console.log('GC is true');
// ****** up to here is fine and works ok, but the call to inspectItem returns nothing ***********
csgo.inspectItem(
76561198036030455,
19490927092,
7667532402530609553,
item => {
console.log(item);
},
);
}
});
});
user.on(‘emailInfo’, function(address, validated) {
// This works fine
console.log(
'Our email address is ' +
address +
" and it's " +
(validated ? 'validated' : 'not validated'),
);
});
user.on(‘wallet’, function(hasWallet, currency, balance) {
// This works fine
console.log(
'Our wallet balance is ' + SteamUser.formatCurrency(balance, currency),
);
}); } bootstrap(); `
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
How to inspect the function returns in Python? - Stack Overflow
What I am struggling is to find a way to inspect the returned dictionary of the called function (here, get_data_points ) before calling...
Read more >inspect — Inspect live objects — Python 3.11.1 documentation
Return a list of source lines and starting line number for an object. The argument may be a module, class, method, function, traceback,...
Read more >Condition of returned items policy - eBay
If a buyer returns an item, it should be returned in the same condition in which it was received, and it should include...
Read more >Unreal Engine 4 Tutorial - Item Inspection Part 1 - Look At
In this series we go through how to add the functionality to inspect items that you are holding, revealing details about said item....
Read more >Here's what really happens to the items you return online - CNN
Once your return arrives at its destination, an employee needs to open the air fryer, inspect it, maybe even plug it in to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That’s not a valid link. There should not be % around the SteamID and assetID values.
No, you can’t.
SteamIDs and inspect keys (the “D” number) are too big to be represented as numbers in JavaScript. The maximum integer that can be represented with guaranteed precision is 2^53.
Wrap those numbers in quotes to turn them into strings.