Handle Lawson. Fix issue with start_collect when already collecting.
This commit is contained in:
parent
4d602b7094
commit
b01511d052
@ -385,6 +385,11 @@ class Robottas(commands.Bot):
|
||||
if driver_num == '_kf':
|
||||
continue
|
||||
position = message['R']['DriverList'][driver_num]['Line']
|
||||
|
||||
driver = '???'
|
||||
if driver_num in self.driver_dict.keys():
|
||||
driver = self.driver_dict[driver_num]
|
||||
|
||||
self.driver_list[int(position) - 1] = self.driver_dict[driver_num]
|
||||
|
||||
# Load lap data
|
||||
@ -520,6 +525,7 @@ class Robottas(commands.Bot):
|
||||
|
||||
|
||||
async def start_collect(self):
|
||||
self.stop_collect()
|
||||
self.is_collecting = True
|
||||
self.is_slippery_reported = False
|
||||
dir_path = os.path.dirname(os.path.realpath(__file__))
|
||||
@ -595,6 +601,7 @@ class Robottas(commands.Bot):
|
||||
'5': '<:VET:1067964065516884079>',
|
||||
'11': '<:PER:1067822335123525732>',
|
||||
'14': '<:ALO:1067876094033793054>',
|
||||
'40': ':neutral_face:',
|
||||
'44': '<:HAM:1067828533746991165>',
|
||||
'55': '<:SAI:1067824776502067270>',
|
||||
'63': '<:RUS:1067831294748274728>',
|
||||
@ -628,6 +635,7 @@ class Robottas(commands.Bot):
|
||||
'NOR': '<:NOR:1067840487593082941>',
|
||||
'GAS': '<:GAS:1067836596495327283>',
|
||||
'HUL': '<:HUL:1067880110918742187>',
|
||||
'LAW': ':neutral_face:',
|
||||
'OCO': '<:OCO:1067834157465612398>',
|
||||
'BOT': '<:BOT:1067819716527276032>',
|
||||
'PIA': '<:PIA:1067844998369914961>',
|
||||
|
Loading…
Reference in New Issue
Block a user