Skip to content

Commit

Permalink
♻️ refactor: refactor codebase #2
Browse files Browse the repository at this point in the history
  • Loading branch information
pnguyen215 committed Jun 22, 2024
1 parent 8663c31 commit 1f8c259
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
Binary file modified libs/bot4j-v1.0.0.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion plugin/src/main/groovy/org/botwrap4j/common/BotWrap4j.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public static String getCurrentSessionId() {
ServletRequestAttributes s = (ServletRequestAttributes) RequestContextHolder.currentRequestAttributes();
return s.getSessionId();
} catch (IllegalStateException e) {
return String.valueOf(UniqueId4j.getUniqueId19());
return String.valueOf(UniqueId4j.getUniqueId());
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,13 @@ public Slack4j transform(SlackClustersRequest conf, Map<String, Object> message)
return null;
}
if (conf.isDebugging()) {
logger.debug("{}", conf);
logger.info("{}", conf);
}
return new Slack4j.Builder()
.channel(conf.getChannelId())
.token(conf.getToken())
.message(message)
.logger(logger)
.connection(new SlackConnectionBuilder()
.debugging(conf.isDebugging())
.skip(!conf.isEnabled()))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,14 @@ public Telegram4j transform(TelegramClustersRequest conf, String message) {
return null;
}
if (conf.isDebugging()) {
logger.debug("{}", conf);
logger.info("{}", conf);
}
return new Telegram4j.Builder()
.text(message)
.parseMode(conf.getType())
.botToken(conf.getToken())
.chatId(conf.getChatId())
.logger(logger)
.connection(new TelegramConnectionBuilder()
.debugging(conf.isDebugging())
.skip(!conf.isEnabled()))
Expand Down

0 comments on commit 1f8c259

Please sign in to comment.