Jump to content
McKay Development

can't get message from groupchat


Yamako

Recommended Posts

i have googling from about 2hour, and no luck... so i make a account just to ask this

i have this

client.on("friendOrChatMessage", function(steamID, message,room) {
  console.log(room)
        console.log("Friend message from " + steamID+ ": " + message);
        if (message == "Ping") {
            client.chatMessage(steamID, "Pong");
            console.log("Send back: Pong");
        } else {
            client.chatMessage(steamID, message);
            console.log("Send back the standard reply");
        }
});

 but this only trigger from direct message , and the output  :

SteamID { universe: 1, type: 1, instance: 1, accountid: 16xxxxxx }
3:58 PM
Friend message from 76xxxxxxxxxxx38: q
3:58 PM
Send back the standard reply
3:58 PM

no output when i send message on group

Edited by Yamako
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...