ValvePython / dota2

🐸 Python package for interacting with Dota 2 Game Coordinator
http://dota2.readthedocs.io
201 stars 32 forks source link

Create lobby #19

Closed denbezrukov closed 7 years ago

denbezrukov commented 7 years ago

Hello, Can you help with simple example of create lobby?

rossengeorgiev commented 7 years ago

Hi, have you looked at the docs? There a bunch of methods for dealing with lobbies

http://dota2.readthedocs.io/en/stable/dota2.features.lobby.html

You can create a lobby easily like this:

dota.create_practice_lobby()
dota.wait_event(dota.EVENT_LOBBY_NEW)

# then you can access the lobby data (read only)
print(dota.lobby)
denbezrukov commented 7 years ago

@rossengeorgiev Yep, thank you :)