Code Monkey home page Code Monkey logo

Comments (9)

kjsmita6 avatar kjsmita6 commented on September 13, 2024

You need to use 'Bot.community.kickGroupMember. Usage is this:

Bot.community.kickGroupMember(new SteamID('group id'), new SteamID('user id'), function(err) {
    console.log(err.stack);
});

I'm not sure if the first argument needs to be a SteamID object. Try this and see if it works. If not, your best bet would be to create an instance of CSteamGroup and use the Bot.community.kick method.

from node-steam-parentbot.

 avatar commented on September 13, 2024

As you can see above, I did it also with SteamID object, the group doesnt need to be one, as the example says in the wiki. The code itself works, but it says I got no permission? But when I access the account manually, i can groupkick.

from node-steam-parentbot.

 avatar commented on September 13, 2024

overall the whole .community doesn't seem to work, cant even join/leave groups.

from node-steam-parentbot.

kjsmita6 avatar kjsmita6 commented on September 13, 2024

Are you using the default _onLogOnResponse or did uiu make your own?

from node-steam-parentbot.

 avatar commented on September 13, 2024

I overwrote _onLogOnResponse and _onFriendMessage.

from node-steam-parentbot.

kjsmita6 avatar kjsmita6 commented on September 13, 2024

Ok, I'm gonna assume then that you didn't set the steamcommunity cookies, which you need. Check the parentbot.js file on how to do that.

from node-steam-parentbot.

 avatar commented on September 13, 2024

So this should work..?

this.steamWebLogon.webLogOn(function (webSessionID, cookies) {
            Bot.community.setCookies(cookies);
        });

sorry I'm new to the whole 'new'-ish stuff, I used the old plain simple node-steam back before all the updates.

from node-steam-parentbot.

kjsmita6 avatar kjsmita6 commented on September 13, 2024

Yeah, make sure you put it in the _onLogOnResponse and then you should be able to kick people.

Basically without the cookies, steam-community doesn't know who you are so you aren't able to do anything.

from node-steam-parentbot.

 avatar commented on September 13, 2024

Alrighty it works, thanks for the support! ❤️

from node-steam-parentbot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.