Jump to content
McKay Development

Send a message using steamcommunity ?


SENPAY98K

Recommended Posts

Is it possible to use steamcommunity to send a message ?

Like using Steam Chat inside steamcommunity to send a message.

                const logOnOptions = {
                    accountName: item.split(":")[0],
                    password: item.split(":")[1],
                    twoFactorCode: SteamTotp.generateAuthCode(item.split(":")[2])
                };
                community.login({
                    "accountName": logOnOptions.accountName,
                    "password": logOnOptions.password,
                    "twoFactorCode": logOnOptions.twoFactorCode
                },
                    function (err, sessionID, cookies) {
                        if (err) {
                            console.log('Error in loggOn');
                        }
                        if (!err) {
                                console.log('   [%s] Successfully Logged On (SteamID: %s)', logOnOptions.accountName, community.steamID.getSteamID64());
                                
								community.chatMessage('76561198097242611', ':steamhappy:', function (err, res, data) {
                                  if (err) {
                                    console.log('   [%s] TASK11: xxxxxx FAIL'.red, logOnOptions.accountName);
                                  }
                                  if (!err) {
                                    console.log('   [%s] TASK11: yyyyyy DONE'.green, logOnOptions.accountName);
                                  }
                                });

In the output say you can't send message, not logged in !

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...