Hey so ive setup a server with pyspades and bots but since the bots need to be automatically added each game im wondering if there is a away to either execute the /addbot command automatically or use a function in the bot script im very new to python coming from c++ but have been looking around trying to use the on_connect function but cant seem to get it working anyone have any ideas
pseudo code or anything info trying to make this work is appreciated
[Pyspades] Executing a ingame command on player join
-
Meymey
Deuce - Posts: 2
- Joined: Fri Jan 25, 2019 2:05 pm
-
notafile
Deuced Up - Posts: 72
- Joined: Sat Sep 09, 2017 3:20 pm
Hi, pypsades hasn't been updated since around 2012. Please use https://github.com/piqueserver/piqueserver.
You will want to hook the on_login hook in your plugin. You can look at other plugins e.g. https://github.com/piqueserver/piqueser ... e2.py#L236 to see how it's done.
You will want to hook the on_login hook in your plugin. You can look at other plugins e.g. https://github.com/piqueserver/piqueser ... e2.py#L236 to see how it's done.
Who is online
Users browsing this forum: No registered users and 6 guests