2626
2727class Bot :
2828 """
29- A class to hold all the information that the bot will use to glue together the rhythm,
29+ A class to hold all the information that Wheatley will use to glue together the rhythm,
3030 row_gen and socket-io parts together into a useful program.
3131 """
3232
@@ -176,7 +176,7 @@ def look_to_has_been_called(self, call_time: float) -> None:
176176 self ._should_start_method = False
177177 self ._should_start_ringing_rounds = False
178178
179- # Reset the state, so that the bot starts by ringing rounds
179+ # Reset the state, so that Wheatley starts by ringing rounds
180180 self ._is_ringing = True
181181 self ._is_ringing_rounds = True
182182
@@ -312,8 +312,8 @@ def tick(self) -> None:
312312
313313 def main_loop (self ) -> None :
314314 """
315- The main_loop of the bot.
316- The main thread will get stuck forever in this function whilst the bot rings.
315+ Wheatley's main loop. The main thread will get stuck forever in this function whilst
316+ Wheatley rings.
317317 """
318318 while True :
319319 # Log a message to say that Wheatley is waiting for 'Look To!'
@@ -340,10 +340,9 @@ def main_loop(self) -> None:
340340 self ._tower .set_is_ringing (False )
341341
342342 def _user_assigned_bell (self , bell : Bell ) -> bool :
343- """ True when the bell is assigned to a different user name than given to the bot """
343+ """ Returns ` True` if this bell is not assigned to Wheatley. """
344344 return not self ._bot_assigned_bell (bell )
345345
346346 def _bot_assigned_bell (self , bell : Bell ) -> bool :
347- """ True when the bell is assigned to the user name given to the bot
348- or bell is unassigned when user name is not set"""
347+ """ Returns `True` if this bell **is** assigned to Wheatley. """
349348 return self ._tower .is_bell_assigned_to (bell , self ._user_name )
0 commit comments