Jump to content
McKay Development

Search the Community

Showing results for tags 'chat'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • News & Announcements
    • Releases & Updates
  • Help & Support
    • General
    • Guides
    • node-steam-user
    • node-steamcommunity
    • node-steam-tradeoffer-manager
    • node-steam-session

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



Website URL




Found 6 results

  1. Been having this problem with the ".getActiveFriendMessageSessions()" methood for days This is my code: const SteamUser = require('steam-user'); const SteamTotp = require('steam-totp'); const clientTiftoo = new SteamUser(); const logOnParmsTiftoo = { accountName: "account", password: "password", twoFactorCode: SteamTotp.generateAuthCode('authcode') } clientTiftoo.logOn(logOnParmsTiftoo) console.log("logged in successfully") const hi = clientTiftoo.chat.getActiveFriendMessageSessions({}, (err, res) => {console.log(err)}) console.log(hi) This is the error that comes up: C:\Users\mosta\Desktop>node bot2.js Logged in successfully Promise { <pending> } Error: Request timed out at Timeout._onTimeout (C:\Users\mosta\node_modules\@doctormckay\stdlib\components\promises.js:17:12) at listOnTimeout (node:internal/timers:559:17) at processTimers (node:internal/timers:502:7) While i'm at it, i'm trying to make my bot log in, read and respond to all unread messages, then log out and close the script. is this method the best way to iterate through unread messages and respond to them? Thanks alot in advance! Note: the code runs for about 10 seconds before timing out
  2. Hi, I've been reading over the documentation for the SteamChatRoomClient, but I can't seem to find the functionality I'm looking for. The document starts out with good definitions for different types of chat in Steam, and I'm pretty sure I'm looking for the ChatRoomGroup variant. Just for extra clarity, I'm wanting to programmatically create ad-hoc chat groups that are meant to be disposable after they have served their purpose. This is opposed to the more static community based groups that have chat room functionality. My internal definition seems to correspond with the "ChatRoomGroup" definition. I saw the CreateChatRoom method in SteamChatRoomClient, but this appears to assume you already have a ChatRoomGroup created as it requires a GroupId. I tried throwing in a null with the hope that it might cascade create a ChatRoomGroup to house the ChatRoom, but I didn't have any luck with that. Am I correct in my understanding that the current CreateChatRoom is focused on adding channels/rooms to an already existing Group (such as the community Steam Groups?) I also noticed the older functionality in chat.js (createChatRoom) that seemed to support the intended functionality, but as noted in the code, this is deprecated functionality and points you towards using the new SteamChatRoomClient. I actually tried to use this as well, and I was able to get it to work after some fiddling. The only negative to this is it created the very old Steam style chat room so I would still prefer to figure out the newer style Steam ChatRoomGroup. Any help with figuring out this puzzle would be appreciated. Thanks!
  3. Hi all, I am trying to send a game invitation friend message using node-steam-user. I am using sendFriendMessage function with EChatEntryType option established as 3 (InviteGame value at https://github.com/DoctorMcKay/node-steam-user/blob/master/enums/EChatEntryType.js) const SteamUser = require('steam-user'); const client = new SteamUser(); client.chat.sendFriendMessage("steam64Id Here", '[lobbyinvite appid="App Game IdHere" lobbyid="Lobby Id Here"][/lobbyinvite]', {chatEntryType: 3});The result is that there is no invitation sent in steam chat I supposted to fill the message parameter like that because of im getting the lobbies invitation history chat in that format. I saw all node-steam-user docs and i did not found any tutorial or explain about how to use this function with EChatEntryType as InviteGame value. ¿how can i use this function to send a game lobby invitation message to a friend? ¿What data and would be the message parameter format in the function? Thanks in advance,
  4. Hi guys im creator Steam Smart Bot probably first Smart bot on steam check http://steamcommunity.com/profiles/76561198428565112/
  5. i would like my console output to be [sTEAM]We have received a message from [sTEAMUSER] currently i have. function getreplymessage(usermessage) {usermessage = usermessage.toLowerCase();for (var i_a = 0; i_a < messageresponse.length; i_a++ ) {for (var i_b = 0; i_b < messageresponse[i_a][0].length; i_b++ ) {if (usermessage == messageresponse[i_a][0][i_b]) {return messageresponse[i_a][1];}}} console.log('[sTEAM]We have received a message!');return '';} friends.on("friendMsg", function(user, msg, type){if(type == Steam.EChatEntryType.ChatMsg){var reply = getreplymessage(msg);if (reply != ''){friends.sendMessage(user, getreplymessage(msg));}}},); But it only logs that we have received. ' How would i log that i received a message with the name of the person?
  6. Hello i am currently making my own bot . I have got to the point where everything works except chat functions sort of. The bot responds to people when they type yet i cant get it to respond if lets say this. friends.on("friendMsg", function(user, msg, type){if(type == Steam.EChatEntryType.ChatMsg){if(msg == "ping"){friends.sendMessage(user, "Pong!"); if they say Ping it does not respond yet i wish to make it so it will respond no matter how i write it.
  • Create New...