oTree Forum >

Bots with Live Pages

#1 by woodsd42

Hi,

I am trying to make a simple bot to help with testing an app with live pages.  I have referred to this documentation : https://otree.readthedocs.io/en/latest/misc/bots_advanced.html#live-pages .  Something that I was unable to figure out - I was wondering how to call call_live_pages() from PlayerBot / play_round().  In particular, I was wondering what exactly to pass as 'method'.  

There does not seem to be an example of bots with live pages in the the sample apps - this could be handy to have in the future.

Best Regards,
Daniel Woods

#2 by Chris_oTree

That function is called automatically, like the bot’s play_round method. You just need to define it. You don’t need to pass anything to it.

#3 by woodsd42

Great, thanks!

Write a reply

Set forum username