Page 1 of 1

[Pyspades] Executing a ingame command on player join

Posted: Fri Jan 25, 2019 2:13 pm
by Meymey
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

Re: [Pyspades] Executing a ingame command on player join

Posted: Sat Feb 02, 2019 9:16 am
by notafile
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.