fix check on half distance
This commit is contained in:
parent
4d288e871c
commit
93364b8580
@ -180,7 +180,7 @@ class Robottas(commands.Bot):
|
|||||||
self.total_laps = int(data["TotalLaps"])
|
self.total_laps = int(data["TotalLaps"])
|
||||||
|
|
||||||
#Check to see about sending half distance message
|
#Check to see about sending half distance message
|
||||||
if self.current_lap > int(self.total_laps / 2):
|
if self.current_lap = int(self.total_laps / 2) + 1:
|
||||||
await self.send_message("We've passed half distance! Has Lance binned it yet?")
|
await self.send_message("We've passed half distance! Has Lance binned it yet?")
|
||||||
|
|
||||||
# Notify on lap change if matches a driver
|
# Notify on lap change if matches a driver
|
||||||
|
Loading…
Reference in New Issue
Block a user