Compare commits
2 commits
01f28284e6
...
ffff84b427
Author | SHA1 | Date | |
---|---|---|---|
ffff84b427 | |||
d694ee0a11 |
3 changed files with 2 additions and 2 deletions
|
@ -35,6 +35,7 @@ public final class ServerMessageHandler implements MessageHandler {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void handle(final MessageCreateEvent event) throws ResponseException, IOException, InterruptedException {
|
public void handle(final MessageCreateEvent event) throws ResponseException, IOException, InterruptedException {
|
||||||
|
logger.debug("Handling server event");
|
||||||
final String content = extractContent(event);
|
final String content = extractContent(event);
|
||||||
final long serverId = event.getServer().get().getId();
|
final long serverId = event.getServer().get().getId();
|
||||||
final String systemMessage = this.serverDBService.getConfig(String.valueOf(serverId)).get().systemMessage();
|
final String systemMessage = this.serverDBService.getConfig(String.valueOf(serverId)).get().systemMessage();
|
||||||
|
|
|
@ -29,6 +29,7 @@ public final class UserMessageHandler implements MessageHandler {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void handle(final MessageCreateEvent event) throws ResponseException, IOException, InterruptedException {
|
public void handle(final MessageCreateEvent event) throws ResponseException, IOException, InterruptedException {
|
||||||
|
logger.debug("Handling user event");
|
||||||
final String content = event.getReadableMessageContent();
|
final String content = event.getReadableMessageContent();
|
||||||
final String userId = String.valueOf(event.getMessageAuthor().getId());
|
final String userId = String.valueOf(event.getMessageAuthor().getId());
|
||||||
final UserConfig config = this.userDBService.getConfig(userId).get();
|
final UserConfig config = this.userDBService.getConfig(userId).get();
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
version: "3"
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
monolith:
|
monolith:
|
||||||
image: git.hhhammer.de/hamburghammer/dchat/monolith:latest
|
image: git.hhhammer.de/hamburghammer/dchat/monolith:latest
|
||||||
|
|
Loading…
Reference in a new issue