Skip to content

Commit

Permalink
feat: inFinalかどうかで絵文字を付与するように
Browse files Browse the repository at this point in the history
  • Loading branch information
book000 committed Aug 15, 2022
1 parent 7456531 commit 6cb9998
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion watcher/src/main/java/com/jaoafa/chatwatcher/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ public static void main(String[] args) {
boolean isFinal = data.getBoolean("isFinal");

String userTag = UserCache.get(userId);
String content = "`" + userTag + "`: `" + result + "` (" + percent + "%)";
String emoji = isFinal ? ":green_circle:" : ":red_circle:";
String content = emoji + "`" + userTag + "`: `" + result + "` (" + percent + "%)";

String previous = SpeechRecognizeCache.get(roomId);
if (previous != null && previous.equals(result) && !isFinal) {
Expand Down

0 comments on commit 6cb9998

Please sign in to comment.