Compare commits

...

2 Commits

Author SHA1 Message Date
512b3b05d2 Nedc to set difference to the class 2022-11-12 00:02:14 -06:00
0c4224314b Add ping to help message 2022-11-11 23:55:15 -06:00
2 changed files with 2 additions and 1 deletions

View File

@ -19,6 +19,7 @@ class HelpManager(BaseGameManager):
help_message = (
"Braveball commands\n"
+ "ping - Will respond 'pong' if the bot is alive\n"
+ "!braveball - Start new game\n"
+ "!guess - While a game is running, add a guess"
+ " (or update an existing one) from 1-1000\n"

View File

@ -77,7 +77,7 @@ class ProcessGuess:
difference = abs(guess - self.pitch_value)
if difference > 500:
return 1000 - difference
difference = 1000 - difference
self.difference = difference
return self.difference