Jump to content


Photo
Discussion

Answer by level

steam node js bot level

Best Answer Vanilla , 11 April 2018 - 03:27 AM

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");
                }
            });
        }
});
Go to the full post


  • Please log in to reply
1 reply to this topic

#1 SpiTik

SpiTik

    Advanced Member

  • Member
  • PipPipPip
  • 41 posts

Posted 10 April 2018 - 08:22 AM

How remake :/ if write test and u profile have level 5+ bot write u have level.... Thanks for help
 
client.on("friendMessage", (steamid, message) => {
        if (message === "test") {
            client.getSteamLevels(steamid, function(results) {
                if (results[client.getSteamID64()] > 5) {
                  client.chatMessage(steamid, "u have +5 lvl.");
                    console.log("done");
                }
            });
        }
});

𝓢𝓟𝓘𝓣𝓘𝓚


#2 Vanilla

Vanilla

    Advanced Member

  • Member
  • PipPipPip
  • 73 posts
  • LocationIndonesia

Posted 11 April 2018 - 03:27 AM   Best Answer

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");
                }
            });
        }
});

  • SpiTik likes this





Also tagged with one or more of these keywords: Discussion, steam, node js, bot, level

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users