Jump to content
McKay Development

xedom

Member
  • Posts

    10
  • Joined

  • Last visited

Posts posted by xedom

  1. Hi,

    i want that bot make posts on my SteamGroup

     

    i have this code:

    var id = "OctaFox";
    var headline = "Some fancy headline";
    var content = "Just wanted to say Hello!";
    
    community.getSteamGroup(id, (err, group) => {
        if(err) {
            throw err;
        } else {
            group.postAnnouncement(headline, content, (err) => {
                if(err) {
                    throw err;
                };
            });
        };
    });
    

    The Bot is Admin, but on the SteamGroup i don`t see any post, and in console i don't have errors.

     

    Bot full sorce code --> https://github.com/xedom/xeSteamBot/blob/master/index.js

    Someone can help me?

    Thanks :D

  2. Try to add setTimeout with a few sec and see if it helps, might be called too early

    nice, now it work thank you :)

     

    i made so:

    setTimeout(() => {
        client.getServerList(null, 100, (servers) => {
            console.log(servers);
        });
    },5000);
    
  3. client.getServerList(NULL, 100, (servers) => {
    	console.log(servers);
    })
    

    You can find information about filters here: https://developer.valvesoftware.com/wiki/Master_Server_Query_Protocol#Filter

     

    ok, but now i have this error --> http://prntscr.com/iy52v0

     

     

    [nodemon] starting `node steamBot.js`
    E:\dev\nodejs\less_three\steamBot001\steamBot.js:119
    client.getServerList(NULL, 100, (servers) => {
                         ^
    
    ReferenceError: NULL is not defined
        at Object.<anonymous> (E:\dev\nodejs\less_three\steamBot001\steamBot.js:119:22)
        at Module._compile (module.js:649:30)
        at Object.Module._extensions..js (module.js:660:10)
        at Module.load (module.js:561:32)
        at tryModuleLoad (module.js:501:12)
        at Function.Module._load (module.js:493:3)
        at Function.Module.runMain (module.js:690:10)
        at startup (bootstrap_node.js:194:16)
        at bootstrap_node.js:666:3
    [nodemon] app crashed - waiting for file changes before starting...
    
×
×
  • Create New...