Best Answer Dr. McKay , 06 September 2018 - 10:46 AM
As you discovered, calling
client.on('friendMessage#' + variable, ...) only creates a listener for the SteamID contained in
variable at the time the listener was added. If you need to change the SteamID you're listening for, you need to just listen for
friendMessage and check the SteamID in the event.