Skip to content

Commit 657e4c5

Browse files
committed
DOC: Fix reference to action method to match BaseBot.
1 parent ceb7286 commit 657e4c5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/bot.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ from botcity.web import WebBot
1414

1515

1616
class Bot(WebBot):
17-
def action(self, execution):
17+
def action(self, execution=None
1818
# Configure whether or not to run on headless mode
1919
self.headless = False
2020

docs/intro.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ from botcity.web import WebBot, Browser
5555

5656

5757
class Bot(WebBot):
58-
def action(self, execution):
58+
def action(self, execution=None):
5959
# Configure whether or not to run on headless mode
6060
self.headless = False
6161

@@ -82,7 +82,7 @@ from botcity.web import WebBot, Browser
8282

8383

8484
class Bot(WebBot):
85-
def action(self, execution):
85+
def action(self, execution=None):
8686
# Configure whether or not to run on headless mode
8787
self.headless = False
8888

@@ -126,7 +126,7 @@ from botcity.web.browsers.chrome import default_options
126126
#from botcity.web.browsers.firefox import default_options
127127

128128
class Bot(WebBot):
129-
def action(self, execution):
129+
def action(self, execution=None):
130130
# Configure whether or not to run on headless mode
131131
self.headless = False
132132

0 commit comments

Comments
 (0)