Jump to content
McKay Development

tf2forever

Member
  • Posts

    7
  • Joined

  • Last visited

Everything 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 think I know why my comment isn't posting. https://steamcommunity.com/discussions/forum/7/35221584661887522/ Thanks for trying to help me, but the problem was actually to do with the account. But can one of you please show me how to do a callback so I know how to do one in the future?
  4. I get null as the callback, but I don't think I'm doing it correctly. community.postGroupComment(gid, content, callback => { console.log(callback) });
  5. 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.
  6. 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...