Jump to content
McKay Development

SpiTik

Member
  • Content Count

    41
  • Joined

  • Last visited


Reputation Activity

  1. Like
    SpiTik reacted to Dr. McKay in steam command fix   
    Supported in v4 beta 2.
  2. Like
    SpiTik got a reaction from RedyyPT in various custom games   
    var random = ['non steamgame1','non steamgame2',
    'non steamgame3',
    'non steamgame4',
    ];  client.setPersona(SteamUser.Steam.EPersonaState.Online),    sleep.sleep(2),setInterval(function random1() {  var randomnumber = Math.floor(Math.random() * (random.length));  client.gamesPlayed([random[randomnumber], 668630, 20710, 200170, 504370, 431960, 207140, 368730, 484830, 356890, 262450, 210770, 730, 753, 466240, 602890, 526740, 238320, 610360, 433850, 428430, 361420, 359550, 242760, 12100, 12110, 581510, 431240, 422870, 716110, 718370, 365670, 479130, 448470, 533300, 485310,]);}, 180000); //3min'non steamgame1',
    'non steamgame1',
  3. Like
    SpiTik reacted to Vanilla in Answer by level   
    client.on("friendMessage", (steamid, message) => {
    if (message === "test") {
    client.getSteamLevels([steamid], function(results) {
    if (results[steamid] > 5) {
    client.chatMessage(steamid, "u have +5 lvl.");
    console.log("done");
    }
    });
    }
    });
  4. Like
    SpiTik reacted to Vanilla in Chat Anti Spam Help   
    Not really an answer, but here's a small code I use on my bot to prevent chat spam.
    It will block a person who send same messages every 2 second.
    var antispam; var markedSteamID; function spamtimer() { //when called, it will reset antispam = 0; markedSteamID = 0; } setInterval(spamtimer, 2000); //call spamtimer function every 2 sec //.. your code here client.on("friendMessage", function(senderID, message) { //anti spam if (senderID == admin){ //Ignore if chat from admin } else if ((antispam == message) && (markedSteamID == senderID.getSteamID64())) { client.chatMessage(senderID, "I caught you spamming"); //do something, like block that person or something } //.. your code here.. to respond chat antispam = message; //bot will record the message, will reset every 2 sec markedSteamID = senderID.getSteamID64(); //bot will record SteamID of sender, will reset every 2 sec });
×
×
  • Create New...