alfred82santa / whalesong

Whalesong is an asyncio python library to manage WebApps remotely. Currently WhatsappWeb is implemented
https://whalesong.readthedocs.io
MIT License
51 stars 19 forks source link

start of two bots #65

Closed Tingaev closed 5 years ago

Tingaev commented 5 years ago

How I can run two bots? I try create two objects Minibot and start in one event loop, but I have error

alfred82santa commented 5 years ago

WhatsappWeb only can be connected once at same time. It means, you can not run two bots with same phone. On the other hand, it is not possible to connect same browser to two WhatsappWebs (to two phones). So, if you want to run two minibot you need two phone and two browser profiles.

You can choose directory profile for each one at:

https://github.com/alfred82santa/whalesong/blob/master/examples/minibot.py#L20

Tingaev commented 5 years ago

Thanks