RangerK Posted Saturday at 03:16 Report Share Posted Saturday at 03:16 Hey, I've gotten back into coding a little bit, and I'd like to try to make a cool bot for the game lobby (not the general lobby). Does anyone have any hello-world lobby bot to help me get started? My idea is make something for choosing teams. An initial version might work like this: The host writes "/captains <user1> <user2>" The bot gives feedback listing all the users and asking user1 to choose someone. Then the bot asks user2 to make TWO choices of team members. Then it alternates until the teams are full. After every choice, the bot lists the teams, and the available spectators. Edge cases: If the host gives the command again, the process starts again. If a chosen team member leaves the process starts again. (or else we can rely on the host re-starting the selection) That's about it for version 1. The host can be burdened with setting the actual teams. The bot can simply produce text output. If anyone can point me in the right direction, I'd appreciate it. 1 Quote Link to comment Share on other sites More sharing options...
Stan` Posted 1 hour ago Report Share Posted 1 hour ago I suppose your best best would be to dig up the code for the autociv mod, or one of its successors. However because the code is gonna be running on all the players, you gotta be careful with not creating a loop. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.