Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- client.on('friendMessage', function(steamID, message){
- community.getSteamUser(steamID, function(err, user){
- if(err){
- return console.log("["+getTime()+"] " +err);
- }
- console.log(user.name); // Will actually get his name, but if the user changes it & msg the bot again, it won't update his name..
- });
- // Is it possible to somehow polldata to community similarly to the manager with something like this:
- const manager = new TradeOfferManager ({
- steam: client,
- community: community,
- language: 'en',
- pollInterval: 5000, // (Polls every 5 min (5000 ms)
- cancelTime: 600000 // 10min
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement