I am trying to build a basic group chat bot. At the moment it looks like this..
var User = require('steam-user')
var bot = new User()
bot.logOn({
'accountName': process.env.USERNAME,
'password': process.env.PASSWORD
})
bot.on('loggedOn', function (res) {
console.log('Logged in!')
console.log(res)
bot.setPersona(User.EPersonaState.Online)
})
bot.on('webSession', function (sessionID, cookies) {
console.log('Got a web session!')
})
bot.on('friendMessage', function (steamID, message) {
console.log(`message from ${steamID.getSteam3RenderedID()}: ${message}`)
})
bot.on('chatInvite', function (inviterID, chatroomID) {
bot.joinChat(chatroomID, function (eresult) {
console.log(eresult)
})
})
bot.on('error', function (e) {
console.log(e)
})
The call to the joinChat method is successful but the EResult is a 7 - "InvalidProtocolVer". I've been searching for information about how to handle this type of error and was hoping that maybe someone here has encountered it before.