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:
Jordan Simpson 2020-11-15 23:24:07 -06:00 committed by GitHub
parent 7d24726032
commit f440cf900c
4 changed files with 15 additions and 3 deletions

View File

@ -1,4 +1,3 @@
README.md
target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/

7
discord4j/README.md Normal file
View File

@ -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)

View File

@ -23,6 +23,14 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</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>
<groupId>org.springframework.boot</groupId>

View File

@ -36,8 +36,6 @@ public class BotConfiguration {
.onErrorResume(listener::handleError)
.subscribe();
}
client.onDisconnect().block();
}
catch ( Exception exception ) {
log.error( "Be sure to use a valid bot token!", exception );