Jump to content
McKay Development

tf2forever

Member
  • Posts

    7
  • Joined

  • Last visited

Posts posted by tf2forever

  1. Updated my code, but it's still not working.

     

    const SteamUser = require("steam-user");
    const SteamTotp = require("steam-totp");
    const SteamCommunity = require('steamcommunity');
    
    let content = "hello world";
    const gid ="103582791470169702"
    
    const client = new SteamUser();
    const community = new SteamCommunity();
    
    const logOnOptions = {
      accountName: "",
      password: "",
      twoFactorCode: SteamTotp.generateAuthCode("")
    }
    
    client.logOn(logOnOptions);
    
    client.on("loggedOn", () => {
      console.log("[-] Logged On");
    });
    
    client.on("webSession", (sessionid, cookies) => {
      manager.setCookies(cookies);
    
      community.setCookies(cookies);
      community.startConfirmationChecker(20000, config.identitySecret);
        community.postGroupComment(gid, content, (callback) => {
     	console.log(callback)
      });
    });

     

  2. ok ok i don't think this issue has been resolved. i tried using the function with my main account, which is level 30 and isn't restricted, and it still doesn't work.

    this is my code:
     

    const SteamUser = require("steam-user");
    const SteamTotp = require("steam-totp");
    const SteamCommunity = require('steamcommunity');
    
    let content = "hello world";
    const gid = "103582791470169702";
    
    const client = new SteamUser();
    const community = new SteamCommunity();
    
    const logOnOptions = {
      accountName: "",
      password: "",
      twoFactorCode: SteamTotp.generateAuthCode("")
    }
    
    client.logOn(logOnOptions);
    
    client.on("loggedOn", () => {
      console.log("[-] Logged On");
    
      community.postGroupComment(String(gid), content, (callback) => {
         console.log(callback)
      });
    });

    i get null as when printing the callback, which makes me think i'm doing something wrong. also, i ran this script multiple times and it has never worked.

  3. I only get the error when the "clanid" is a number, probably because it doesn't pass the if statement which turns it into a steamID object.

    When "clanid" is a string, I don't get an error but it doesn't comment.

     

    Edit:

    config.clanid doesn't turn up as undefined.

  4. I'm trying to post a comment on my group (https://steamcommunity.com/groups/testingwall) but it's not working for some weird reason.
     

    const content = "hello world";
    const gid = config.clanid;
    community.postGroupComment(gid, content);

    This is the "clanid" in my config:

    {
        [..]
        "clanid": "103582791470169702"
    }

    This is the error I'm getting when I run the program
     

    [..]\Bot\node_modules\steamcommunity\components\groups.js:611
                    "uri": "https://steamcommunity.com/comment/Clan/post/" + gid.getSteamID64() + "/-1/",
                                                                                 ^
    
    TypeError: Cannot read property 'getSteamID64' of undefined
        at SteamCommunity.postGroupComment ([..]\Bot\node_modules\←[4msteamcommunity←[24m\components\groups.js:611:64)

    Please help me!

×
×
  • Create New...