Jump to content
McKay Development

Recommended Posts

Posted

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 !

Posted
5 hours ago, Dr. McKay said:

Is using webchat a badge task? I don't remember. If it is, I'm not entirely sure how they'd detect when you use webchat but you might be able to accomplish it by logging onto a CM through steam-user using a client logon token.

There is a task for sending a steam emoticon to a friend.
1069674444_Screenshot2021-12-10135132.thumb.png.641e2ef622d75c8ecee0136e8d05900d.png

 

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