Ben Bu kodla Nasıl Yorum spam Yapabilirim. Yada Farklı Farkı hesaplardan nasıl yorum botu yapabilim
bunu yapabilmem için belirli bi kaynak varmı bulabilecegim.
JavaScript:
var SteamUser = require('steam-user');
var SteamCommunity = require('steamcommunity');
var SteamTotp = require('steam-totp');
var TradeOfferManager = require('steam-tradeoffer-manager');
var fs = require('fs');
var firstClient = new SteamUser();
// Managers
var firstManager = new TradeOfferManager({
"steam": firstClient,
"domain": "example.com",
"language": "en"
});
// Communities
var firstCommunity = new SteamCommunity();
// Config
var config = JSON.parse(fs.readFileSync('./config.json'));
var firstLogonOptions = {
"accountName": config.bots.firstaccount.username,
"password": config.bots.firstaccount.password,
"twoFactorCode": SteamTotp.getAuthCode(config.bots.firstaccount.shared_secret)
};
// Logging in...
firstClient.logOn(firstLogonOptions);
firstClient.on('loggedOn', () => {
console.log('Logged In!');
firstClient.setPersona(SteamUser.EPersonaState.Online);
firstClient.gamesPlayed(["Testing comment BOT",730,440,570]);
});
firstClient.on('webSession', (sessionid, cookies) => {
firstManager.setCookies(cookies);
firstCommunity.setCookies(cookies);
});
firstClient.on('friendRelationship', function(steamID, relationship) {
if (relationship == SteamUser.EFriendRelationship.RequestRecipient) {
firstClient.addFriend(steamID);
console.log(" ");
console.log("Accepted friend request from: " + steamID);
firstClient.chatMessage(steamID, "Welcome To My Comment Bot, type !help to get started!");
}
});
firstClient.on("friendMessage", function(steamID, message) {
if (message == "!help") {
firstClient.chatMessage(steamID, "Type !c1,!c2,!c3,!c4,!c5,!c6,!c7,!c8,!c9 for comment on your profile");
}
});
firstClient.on("friendMessage", function(steamID, message) {
if (message == "!c1") {
firstClient.chatMessage(steamID, "OK i comment you profile !c1")
firstCommunity.postUserComment(steamID, "+Rep Awp King ")
}
});
firstClient.on("friendMessage", function(steamID, message) {
if (message == "!c2") {
firstClient.chatMessage(steamID, "OK i comment you profile !c2")
firstCommunity.postUserComment(steamID, "+Rep Aimbot dedected")
}
});
firstClient.on("friendMessage", function(steamID, message) {
if (message == "!c3") {
firstClient.chatMessage(steamID, "OK i comment you profile !c3")
firstCommunity.postUserComment(steamID, "+Rep Friendly Person ")
}
});
firstClient.on("friendMessage", function(steamID, message) {
if (message == "!c4") {
firstClient.chatMessage(steamID, "OK i comment you profile !c4")
firstCommunity.postUserComment(steamID, "+Rep ONE TAP MACHINE ")
}
});
firstClient.on("friendMessage", function(steamID, message) {
if (message == "!c5") {
firstClient.chatMessage(steamID, "OK i comment you profile !c5")
firstCommunity.postUserComment(steamID, "+Rep Good Teammate ")
}
});
firstClient.on("friendMessage", function(steamID, message) {
if (message == "!c6") {
firstClient.chatMessage(steamID, "OK i comment you profile !c6")
firstCommunity.postUserComment(steamID, "+Rep Only Headshot")
}
});
firstClient.on("friendMessage", function(steamID, message) {
if (message == "!c7") {
firstClient.chatMessage(steamID, "OK i comment you profile !c7")
firstCommunity.postUserComment(steamID, "+Rep Nıce Aim")
}
});
firstClient.on("friendMessage", function(steamID, message) {
if (message == "!c8") {
firstClient.chatMessage(steamID, "OK i comment you profile !c8")
firstCommunity.postUserComment(steamID, "+Rep Clutch Meister")
}
});
firstClient.on("friendMessage", function(steamID, message) {
if (message == "!c9") {
firstClient.chatMessage(steamID, "OK i comment you profile !c9")
firstCommunity.postUserComment(steamID, "+Rep Headmachine ")
}
});