File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99using RustPlusBot . Features . Chat ;
1010using RustPlusBot . Features . Commands ;
1111using RustPlusBot . Features . Connections ;
12+ using RustPlusBot . Features . Events ;
1213using RustPlusBot . Features . Pairing ;
1314using RustPlusBot . Features . Workspace ;
1415using RustPlusBot . Host . Credentials ;
5051 . Validate ( static o => o . HeartbeatTimeout > TimeSpan . Zero , "Connections:HeartbeatTimeout must be positive." )
5152 . Validate ( static o => o . HeartbeatTimeout < o . HeartbeatInterval ,
5253 "Connections:HeartbeatTimeout must be less than HeartbeatInterval." )
54+ . Validate ( static o => o . MarkerPollInterval > TimeSpan . Zero , "Connections:MarkerPollInterval must be positive." )
5355 . ValidateOnStart ( ) ;
5456builder . Services . AddConnections ( ) ;
5557builder . Services . AddChat ( ) ;
5860 . Validate ( static o => o . Cooldown > TimeSpan . Zero , "Commands:Cooldown must be positive." )
5961 . ValidateOnStart ( ) ;
6062builder . Services . AddCommands ( ) ;
63+ builder . Services . AddEvents ( ) ;
6164
6265var host = builder . Build ( ) ;
6366
Original file line number Diff line number Diff line change 2323 <ProjectReference Include =" ..\RustPlusBot.Features.Connections\RustPlusBot.Features.Connections.csproj" />
2424 <ProjectReference Include =" ..\RustPlusBot.Features.Chat\RustPlusBot.Features.Chat.csproj" />
2525 <ProjectReference Include =" ..\RustPlusBot.Features.Commands\RustPlusBot.Features.Commands.csproj" />
26+ <ProjectReference Include =" ..\RustPlusBot.Features.Events\RustPlusBot.Features.Events.csproj" />
2627 </ItemGroup >
2728</Project >
You can’t perform that action at this time.
0 commit comments