Comments (9)
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.
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.
overall the whole .community doesn't seem to work, cant even join/leave groups.
from node-steam-parentbot.
Are you using the default _onLogOnResponse
or did uiu make your own?
from node-steam-parentbot.
I overwrote _onLogOnResponse and _onFriendMessage.
from node-steam-parentbot.
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.
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.
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.
Alrighty it works, thanks for the support! ❤️
from node-steam-parentbot.
Related Issues (20)
- How to generate HOT 6
- Handling sended offers :) HOT 2
- Wont connect to socket HOT 26
- What is an identity secret? HOT 27
- Why steam is not working HOT 2
- How to get .2fa_info files. HOT 3
- Cannot Automatically Accept Trade Offers HOT 28
- Offer sending failure HOT 4
- Problem with hold duration! HOT 3
- I'm getting unexpected disconnection all the time HOT 6
- IS IT INCLUDE MANAGER? HOT 2
- How to get data on weblogon? HOT 1
- How can I reconnect from steamweblogon programmatically? HOT 3
- Handling Offers HOT 2
- Recent issue with NodeJS reinstall HOT 10
- [Q] Worth changing to ES6 version? HOT 1
- Limit numbers of cSteamGroup.getGroupMembers() returns HOT 4
- smsCode HOT 30
- Array of bots and handlers HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-steam-parentbot.