Closed piman51277 closed 4 years ago
Can you please show the code for your event listener?
this.client = new SteamUser();
const loginCredentials = {
accountName: < username > ,
password: < password > ,
twoFactorCode: SteamTotp.generateAuthCode( < sharedSecret > ),
autoRelogin: true,
machineName: "PiBot"
}
this.client.logOn(loginCredentials);
this.client.on('friendMessage', (steamID, msg) => {
this.processCommands(steamID, msg) //msg parsing/processing function
})
The friendMessage event listener is only added after the loggedOn event. (This code is compiled from snippets from my bot class)
Please try using the new Steam chat version. It would be this.client.chat.on('friendMessage', (message) => {})
The error persists. It exhibits the same behavior as before.
The error has stopped occurring. This might have been a problem with Steam.
The
friendMessage
event does not trigger for messages coming from the mobile Steam App. It functions normally for messages coming from Desktop.This broke very recently, and might have to do with the recent Steam Friends update.
Versions
steam-user v4.18.0 node v12.18.3