Jump to content
McKay Development

zephylac

Member
  • Posts

    6
  • Joined

  • Last visited

zephylac's Achievements

  1. Hi I'm using getPersonas to retrieve people's username from a steam id but when I'm calling it ir returns me an error. I've checked npm and I have the last version of steam-user. Is it uncompatible with node-steam? var ids = steamids.map(function(id) { ^ TypeError: steamids.map is not a function at SteamUser.getPersonas (***/node_modules/steam-user/components/friends.js:119:21) P.S:I didn't forget to call the lib: // Requires var Steam = require("steam"), SteamGroups = require("steam-groups"), User = require('steam-user'), util = require("util"), fs = require("fs"), csgo = require("../"), readlineSync = require("readline-sync"), crypto = require("crypto"), pg = require('pg'); // Objects var bot = new Steam.SteamClient(), steamUser = new Steam.SteamUser(bot), steamFriends = new Steam.SteamFriends(bot), steamGroup = new SteamGroups(bot), steamGC = new Steam.SteamGameCoordinator(bot, 730), CSGOCli = new csgo.CSGOClient(steamUser, steamGC, false), advUser = new User();
  2. Hi it's me again but this time I wanna use the methods getPersona but it's not implemented in node-steam. How should I do? Implement it in the code? add steam-user?
  3. I guess I would do that Steam.EChatEntryType.ChatMsg === 1
  4. Yes thank you I saw that. But I've looked in to it but there is no documentation on type of chatEntryType. I've look around none of it. So how I can distinguish them?
  5. Ok but my problem is that I want to use yours but the node-steam event friendMessage is triggered when someone is typing but I want it to be trigger when I actually receive a message. SO if I want to use yours I need to remove node-steam?
  6. Hi, Today I found this awesome extansion I tried to use it. I implemented it in my codes Here's my problem: I want to get a message from a friend so I did: advFriend.on('friendMessage', function(steamID, message) { console.log("Friend message from " + steamID.getSteam3RenderedID() + ": " + message); }); But when I send message to my bot, nothing appears in my console. Here's how I defined it before: // Requiresvar Steam = require("steam"),SteamGroups = require("steam-groups"),storage = require('node-persist'),util = require("util"),fs = require("fs"),csgo = require("../"),readlineSync = require("readline-sync"),crypto = require("crypto"),AdvSteamUser = require('steam-user'); // Objectsvar bot = new Steam.SteamClient(),steamUser = new Steam.SteamUser(bot),steamFriends = new Steam.SteamFriends(bot),steamGroup = new SteamGroups(bot),steamGC = new Steam.SteamGameCoordinator(bot, 730),CSGOCli = new csgo.CSGOClient(steamUser, steamGC, false),advFriend = new AdvSteamUser(),I can't find the error. I tried several times and solutions. I don't know from where it comes N.B : I don't have any error reports in my console
×
×
  • Create New...