Jump to content
McKay Development

Sentry file not saved


insane

Recommended Posts

Hey,

 

I'm trying to implement a login process for my bots, but it seems that the sentry files are not stored within the dataDirectory.

 

This is my current code:

this.dataDir = 'data/'
this.client = new Steam.CMClient()

this.user = new SteamUser(this.client, {
  promptSteamGuardCode: false,
  dataDirectory: this.dataDir
})

this.community = new SteamCommunity()

this.user.storage.on('save', (filename, contents, callback) => {
  if (filename.includes('sentry.')) {
    filename = `${this.userName}.sentry`
  }

  fs.writeFile(path.join(this.dataDir, filename), contents, err => {
    if (err) {
      console.error(`Can't write ` + filename + ': ' + err.message)
      return callback(err)
    }

    callback(err)
  })
})

// I implemented the read function respectively

After that I have a couple of other listeners (e.g. webSession).

 

The issue is, only the cellid-x.txt and servers.json are actually created within the data directory, it seems that I'm not able to receive the sentry file no matter what I do.

 

I handle the login via the regular logOn() function.

Link to comment
Share on other sites

Ok, I commented out the custom save handler, and set the singleSentryFile to false (even though this should be the default option), and it's not storing the sentry files.

 

Do the sentries even matter if I'm using the bots with the mobile authenticator?

 

Thanks

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...