3939@ RequiredArgsConstructor
4040public class SpringConfig {
4141 @ Bean
42- public PresenceUpdater standardActivityPresenceUpdater () {
42+ PresenceUpdater standardActivityPresenceUpdater () {
4343 return PresenceUpdater .standardActivities ();
4444 }
4545
4646 @ Bean
47- public DataSource getDataSource (BotConfig config ) {
47+ DataSource getDataSource (BotConfig config ) {
4848 return DbHelper .initDataSource (config );
4949 }
5050
5151 @ Bean
52- public ScheduledExecutorService asyncPool (BotConfig config ) {
52+ ScheduledExecutorService asyncPool (BotConfig config ) {
5353 return Executors .newScheduledThreadPool (config .getSystems ().getAsyncPoolSize ());
5454 }
5555
5656 @ Bean
57- public BotConfig config () {
57+ BotConfig config () {
5858 return new BotConfig (Path .of ("config" ));
5959 }
6060
6161 @ Bean
62- public SystemsConfig systemsConfig (BotConfig botConfig ) {
62+ SystemsConfig systemsConfig (BotConfig botConfig ) {
6363 return botConfig .getSystems ();
6464 }
6565
@@ -71,7 +71,7 @@ public SystemsConfig systemsConfig(BotConfig botConfig) {
7171 * @throws LoginException if the token is invalid
7272 */
7373 @ Bean
74- public JDA jda (BotConfig botConfig , ApplicationContext ctx ) throws LoginException {
74+ JDA jda (BotConfig botConfig , ApplicationContext ctx ) throws LoginException {
7575 Collection <Object > listeners = ctx .getBeansWithAnnotation (PreRegisteredListener .class ).values ();
7676 return JDABuilder .createDefault (botConfig .getSystems ().getJdaBotToken ())
7777 .setStatus (OnlineStatus .DO_NOT_DISTURB )
@@ -90,7 +90,7 @@ public JDA jda(BotConfig botConfig, ApplicationContext ctx) throws LoginExceptio
9090 * @throws DIH4JDAException if an error occurs while initializing {@link DIH4JDA}
9191 */
9292 @ Bean
93- public DIH4JDA initializeDIH4JDA (JDA jda ) throws DIH4JDAException {
93+ DIH4JDA initializeDIH4JDA (JDA jda ) throws DIH4JDAException {
9494 DIH4JDA .setDefaultRegistrationType (RegistrationType .GLOBAL );
9595 return DIH4JDABuilder .setJDA (jda )
9696 .disableLogging (DIH4JDALogger .Type .SMART_QUEUE_IGNORED )
@@ -99,7 +99,7 @@ public DIH4JDA initializeDIH4JDA(JDA jda) throws DIH4JDAException {
9999 }
100100
101101 @ Bean
102- public BotConfig botConfig () {
102+ BotConfig botConfig () {
103103 return new BotConfig (Path .of ("config" ));
104104 }
105105}
0 commit comments