BAEL-4731 (article improvement) (#10251)
* Instead of using .onDisconnect().block() to keep the app alive, make the app a web server. * Add article reference to README
This commit is contained in:
parent
7d24726032
commit
f440cf900c
|
@ -1,4 +1,3 @@
|
||||||
README.md
|
|
||||||
target/
|
target/
|
||||||
!.mvn/wrapper/maven-wrapper.jar
|
!.mvn/wrapper/maven-wrapper.jar
|
||||||
!**/src/main/**/target/
|
!**/src/main/**/target/
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
## DISCORD4J
|
||||||
|
|
||||||
|
This module contains articles about Discord4J
|
||||||
|
|
||||||
|
### Relevant Articles:
|
||||||
|
|
||||||
|
- [Creating a Discord Bot with Discord4J + Spring Boot](https://www.baeldung.com/spring-discord4j-bot)
|
|
@ -23,6 +23,14 @@
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-starter</artifactId>
|
<artifactId>spring-boot-starter</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-starter-webflux</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-starter-actuator</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
|
|
@ -36,8 +36,6 @@ public class BotConfiguration {
|
||||||
.onErrorResume(listener::handleError)
|
.onErrorResume(listener::handleError)
|
||||||
.subscribe();
|
.subscribe();
|
||||||
}
|
}
|
||||||
|
|
||||||
client.onDisconnect().block();
|
|
||||||
}
|
}
|
||||||
catch ( Exception exception ) {
|
catch ( Exception exception ) {
|
||||||
log.error( "Be sure to use a valid bot token!", exception );
|
log.error( "Be sure to use a valid bot token!", exception );
|
||||||
|
|
Loading…
Reference in New Issue