insane Posted July 16, 2017 Report Posted July 16, 2017 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. Quote
Dr. McKay Posted July 16, 2017 Report Posted July 16, 2017 I don't know offhand why it wouldn't be writing the files at all, but why not just disable the singleSentryFile option to get the behavior you want without implementing your own save handler? Quote
insane Posted July 16, 2017 Author Report Posted July 16, 2017 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 Quote
Dr. McKay Posted July 16, 2017 Report Posted July 16, 2017 No, the sentries aren't particularly important if you're using 2FA. Quote
Recommended Posts
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.