Skip to content

Commit 948a94e

Browse files
committed
Applied minor fixes in docs
1 parent d2ae1f2 commit 948a94e

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

docs/bots.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ This bot realizes, using the `HTTPBot` class, the following steps for communicat
2828
While entering bot's context:
2929

3030
- Set the given cookie for further communications
31-
- Get the challenge page based on the input `cid` (Challent ID)
31+
- Get the challenge page based on the input `cid` (Challenge ID)
3232
- Parse the challenge page for the CSRF token
3333
- Parse the challenge page for challenge inputs (attached in the `inputs` attribute as a dictionary)
3434
- Execute bot's logics defined by the user (the `answer` attribute must be set at the end of the computation

docs/create.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -192,19 +192,19 @@ The following steps show how to create the `RootMeIRCBot` class:
192192
::python
193193
class RootMeIRCBot(IRCBot):
194194
...
195-
def postamble(self):
196-
self.msg("candy", "!ep{} -rep {}".format(self.cid, self.answer))
197-
self.read_until("You dit it! You can validate the challenge"
198-
" with the password")
199-
self.flag = self.buffer.strip()
200-
self.logger.info(self.flag)
201-
202-
def preamble(self):
203-
pattern = "MODE {} +x".format(self.nickname)
204-
if pattern not in self.buffer:
205-
self.read_until(pattern)
206-
self.msg("candy", "!ep{}".format(self.cid))
207-
self.read_until("PRIVMSG {} :".format(self.nickname))
208-
self.inputs = {'message': self.buffer.strip()}
195+
def postamble(self):
196+
self.msg("candy", "!ep{} -rep {}".format(self.cid, self.answer))
197+
self.read_until("You dit it! You can validate the challenge"
198+
" with the password")
199+
self.flag = self.buffer.strip()
200+
self.logger.info(self.flag)
201+
202+
def preamble(self):
203+
pattern = "MODE {} +x".format(self.nickname)
204+
if pattern not in self.buffer:
205+
self.read_until(pattern)
206+
self.msg("candy", "!ep{}".format(self.cid))
207+
self.read_until("PRIVMSG {} :".format(self.nickname))
208+
self.inputs = {'message': self.buffer.strip()}
209209

210210
4. Finally, the bot should be documented appropriately.

0 commit comments

Comments
 (0)