File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,13 +25,13 @@ static void Main(string[] args)
2525 private GameState lastGameState ;
2626
2727 public async Task MainAsync ( ) {
28+ _config = BuildConfig ( ) ;
2829 var services = ConfigureServices ( ) ;
2930
3031 memory = services . GetRequiredService < MemoryService > ( ) ;
3132 state = services . GetRequiredService < StateService > ( ) ;
3233
3334 _client = services . GetRequiredService < DiscordSocketClient > ( ) ;
34- _config = BuildConfig ( ) ;
3535
3636 _client . Log += LogAsync ;
3737 services . GetRequiredService < CommandService > ( ) . Log += LogAsync ;
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ public class StateService {
2626 public StateService ( IServiceProvider services ) {
2727 _discord = services . GetRequiredService < DiscordSocketClient > ( ) ;
2828 _memory = services . GetRequiredService < MemoryService > ( ) ;
29+ _config = services . GetRequiredService < IConfiguration > ( ) ;
2930 _services = services ;
3031
3132 _discord . Ready += InitAsync ;
You can’t perform that action at this time.
0 commit comments