3838@ RequiredArgsConstructor
3939public class SpringConfig {
4040 @ Bean
41- public PresenceUpdater standardActivityPresenceUpdater () {
41+ PresenceUpdater standardActivityPresenceUpdater () {
4242 return PresenceUpdater .standardActivities ();
4343 }
4444
4545 @ Bean
46- public DataSource getDataSource (BotConfig config ) {
46+ DataSource getDataSource (BotConfig config ) {
4747 return DbHelper .initDataSource (config );
4848 }
4949
5050 @ Bean
51- public ScheduledExecutorService asyncPool (BotConfig config ) {
51+ ScheduledExecutorService asyncPool (BotConfig config ) {
5252 return Executors .newScheduledThreadPool (config .getSystems ().getAsyncPoolSize ());
5353 }
5454
5555 @ Bean
56- public BotConfig config () {
56+ BotConfig config () {
5757 return new BotConfig (Path .of ("config" ));
5858 }
5959
6060 @ Bean
61- public SystemsConfig systemsConfig (BotConfig botConfig ) {
61+ SystemsConfig systemsConfig (BotConfig botConfig ) {
6262 return botConfig .getSystems ();
6363 }
6464
@@ -70,7 +70,7 @@ public SystemsConfig systemsConfig(BotConfig botConfig) {
7070 * @throws LoginException if the token is invalid
7171 */
7272 @ Bean
73- public JDA jda (BotConfig botConfig , ApplicationContext ctx ) throws LoginException {
73+ JDA jda (BotConfig botConfig , ApplicationContext ctx ) throws LoginException {
7474 Collection <Object > listeners = ctx .getBeansWithAnnotation (PreRegisteredListener .class ).values ();
7575 return JDABuilder .createDefault (botConfig .getSystems ().getJdaBotToken ())
7676 .setStatus (OnlineStatus .DO_NOT_DISTURB )
@@ -89,7 +89,7 @@ public JDA jda(BotConfig botConfig, ApplicationContext ctx) throws LoginExceptio
8989 * @throws DIH4JDAException if an error occurs while initializing {@link DIH4JDA}
9090 */
9191 @ Bean
92- public DIH4JDA initializeDIH4JDA (JDA jda ) throws DIH4JDAException {
92+ DIH4JDA initializeDIH4JDA (JDA jda ) throws DIH4JDAException {
9393 DIH4JDA .setDefaultRegistrationType (RegistrationType .GLOBAL );
9494 return DIH4JDABuilder .setJDA (jda )
9595 .setGlobalSmartQueue (false )
@@ -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