Jump to content
McKay Development

Riya

Member
  • Posts

    6
  • Joined

  • Last visited

Posts posted by Riya

  1. this worked for me as said by dr mckay

     

    client.on('friendRelationship', (friend, relationship) => {
    if(relationship == SteamUser.EFriendRelationship.RequestRecipient) {
    client.addFriend(friend);
    message(friend, "Thanks for adding me, use !help to get started.");
    community.postUserComment(friend,"Thanks for adding! Enjoy your stay and have a good Day!");
    
    
    }});
  2. my bot is getting web session expired and i use 

    community.on('sessionExpired', function(err) {
    if (err) {
    console.log('sessionExpired: '+err);
    } 
    if (client.steamID) {
    client.webLogOn();
    } else {
    client.logOn(logon_details);
    }
    });

    this code is triggered when the user of bot tried to make the bot start a trade offer.

    what is a simple way for me to trigger session expired like every 15 mins if the session has expired?

    Ans- A simple http request every 15 mins using node-cron to trigger it. (i am not a coder so if u could show it to me thanks!)

     

    Right now the user of bot triggers it then has to wait 1-2 mins then the bot webLogon() and then  sends trade offer

     

    Alternative 2

    it was suggested in forum

    we can use direct cronschedule that does webLogOn() every 15 min , and whenever that error fires I also do a webLogOn().  but idk what will happen if i try to webLogON() if the session hasnt been expired yet thats y i wanted to set up Alternative 1

  3. I don't have any experience in computer languages etc, even no c++ as my field of education is different .But i have keen intrest in such things now a days.

    I was planing to make a simple Steam response bot which would give specific Pre-saved response for a certain Commands. What should i learn to make it?

    1) which computer languages?

    2) Do i need to learn everything about API or just how steam API works?

    3) Any other resources ?

    4) are there any simple steam bots with explantions.

×
×
  • Create New...