-
Notifications
You must be signed in to change notification settings - Fork 501
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Steam group chats no longer work? #408
Comments
Sounds like chat ghost to me - typical chat room restart in which nobody is in chat anymore. Happens on usual basis with each group chat. There is no good way to fight with it either, most stupid one is simply joining the chat on usual basis, such as each hour. A bit better one is doing the same but only when you don't register any activity such as chat message or join/leave, this could indicate that chat ghosted as well. The best one that I use right now is tracking number of active users internally and checking number of chat users on steam community group page. If it's suddenly less than the amount that bot registered then very likely this is a ghost as well. Works decent, as long as you do that on usual basis. |
Any ideas on how to go about this more practically? I'm trying to bot a few dozen group chats and process what's being said. I'm pretty new to Steamkit and bots in general, used to work with making games. |
Any examples would be sweet too. |
@JustArchi any idea what the Steam client does to prevent this? Or does it suffer from this as well? |
I'm surprised Steam does even anything. I've been logging into the same account every two minutes for debugging, got it also logged in on another computer, and haven't gotten any issues at all. This is really a great library. |
@ItsEddie Most practical yet very stupid approach is like I said, registering last chat event for each chatID. For example Each chat has a Obviously this approach fights with the problem, but absolutely can't tell you when ghost in fact happens. Ghost detecthing requires HTTP checking of group page, at least until I find out something better. This works for you, can't work for me (check below why). @Netshroud Absolutely nothing. If chat ghosts, there are no messages happening, nobody is leaving/entering, and the only "indicator" that chat ghost happened is when one of chat visitors go offline - then you have a nice fuckup of user being on chat with "last online: 5 minutes ago" or something like that. Unless you manually rejoin that chat, you're in limbo. Basically I added very "stupid" way of detecting chat ghosts - like pointed out above, so when chat ghost happens my bot is messaging all chat visitors about ghost, then reconnects to chat itself. This is working just fine and allowed me to fight with this almost perfectly, since the worst case is bot telling you "chat ghosted, close tab then click here to reconnect: steam://joinchat/..." |
And BTW this issue is driving me crazy as well - from SK2 there is absolutely no way of detecting that whatsoever, which is caused by Steam client not being aware of it at all. Sure you can "ignore" this problem by doing Hence if you just want to ignore the issue, call (I also have on TODO finding a better way to fight with this, maybe 100% SK2-based) |
Your approach is exactly how I created a spam filter, well almost the same.
Anyways, I manually go into chatrooms, maybe that was part of my problem too. I'll take a look into it later, thank you a lot for your quick and kind responses. By the way, something else - do you have a way to interact with the Steam community market? Or is that not yet available, or not even part of this kit? I'm talking just getting prices for certain items, maybe buying ones, and selling some from the inventory. |
Steam community, store as well as any HTTP-based functionality is out of the scope of SK2. You can find some functions extracted and implemented in my ASF project, but nothing related to market, as botting market is against Steam ToS, so I'm not dealing with that.
Could be, Steam network doesn't work well when there are multiple sessions with the same |
Cheers. |
Good news. The reason the method wouldn't be executed is indeed that I manually joined it. After turning off my secondary computer, and using SteamFriends to join the chat, it finally throws the unimplemented error. |
Closing as this isn't a bug in SteamKit. |
I've been registering SteamFriends.ChatMsgCallback but it never seems to fire. All other functionality does seem to work - it's just the group ones. Strangely, it does seem to recognize when I go in and out of a group chat.
The text was updated successfully, but these errors were encountered: