@@ -192,19 +192,19 @@ The following steps show how to create the `RootMeIRCBot` class:
192
192
::python
193
193
class RootMeIRCBot(IRCBot):
194
194
...
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()}
209
209
210
210
4 . Finally, the bot should be documented appropriately.
0 commit comments