Skip to content

Commit

Permalink
fix : change to message personal rank
Browse files Browse the repository at this point in the history
  • Loading branch information
MoonSangWon committed Oct 23, 2023
1 parent b500fa3 commit d223f1a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/mega/waka/discord/DiscordListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public StringBuilder returnToOverallRanking(List<Map.Entry<String,Integer>> sort
message.append((i + 1) + " 등 - " + sortedList.get(i).getKey() + "\n -> " + hours + " hours " + minutes + " mins\n");
}
}
if(cnt==0) message.append("현재 근무 시간 미달자가 없습니다.\n");
if(cnt==0) message.append("There are currently no people who are short of working hours.\n");
return message;
}
public StringBuilder returnToPersonalRanking(List<Map.Entry<String,Integer>> sortedList,Member member){
Expand Down Expand Up @@ -191,8 +191,8 @@ else if(sortedList.get(i).getValue() > 10*60){
member = memberRepository.findMemberByNameWithSevenProjects(name);
Optional<SevenDaysProject> project = member.getSevenprojects().stream().max(Comparator.comparing(item->item.getTime().substring(0,2)));
message.append("\n Most Project : "+project.get().getName() +"->"+project.get().getTime());
if(cnt==0) message.append("\n"+member.getName() + "You are not short of working hours.\n");
else message.append("\n"+member.getName() + "\nYou are short of working hours.\n");
if(cnt==0) message.append("\n You are not short of working hours.\n");
else message.append("\n You are short of working hours.\n");
return message;
}
public EmbedBuilder setEmbed(){
Expand Down

0 comments on commit d223f1a

Please sign in to comment.