Closed DJPlaya closed 5 years ago
Hey, Well, message are sent through steam chat, so the schema is this one : ASteambot -> Steam server -> Steam friend
If ASteambot send too much message (I don't know the exact message per minutes limit), Steam Server will NOT forward your message to Steam friend. I have no control over that.
BUT!
What I made to "fix" this is the following :
foreach (string line in steamID_msg[1].Split(new[] { "\n" }, StringSplitOptions.None))
{
bot.SteamFriends.SendChatMessage(steamID, EChatEntryType.ChatMsg, line);
Thread.Sleep(1300);
}
Line 504-508 from : HandleMessage.cs
So, sending a message with \n will split the message in 2 different message and put a delay of 1.3 seconds between the two message.
Example :
KACR_PrintToSteamAdmin(##cvar##.Getstring, "[KACR] Hello\nWorld");
Will send :
BOT: Hello
[1.3 sec]
BOT: World
Cool, should be usefull, you should add this to the Include so everyone know ;)
Hi, I want to implement ASteambot into my Anti Cheat KACR. Since this could spam the Steambot/Targetet User with many Messages at the same Time, i wanted to know if there is some kind of Limitation or Spam Protection. An Example of what i wanna do:
This is basically just spamming a Person on Steam, should i use RequestFrame2 to Delay each Message a bit or do you think its fine?