Skip to content

Commit

Permalink
Brought back the funny in today
Browse files Browse the repository at this point in the history
  • Loading branch information
SeveralCircles committed Feb 5, 2023
1 parent dc60ce8 commit 056ca3d
Show file tree
Hide file tree
Showing 14 changed files with 10 additions and 0 deletions.
Binary file modified .gradle/7.2/executionHistory/executionHistory.bin
Binary file not shown.
Binary file modified .gradle/7.2/executionHistory/executionHistory.lock
Binary file not shown.
Binary file modified .gradle/7.2/fileHashes/fileHashes.bin
Binary file not shown.
Binary file modified .gradle/7.2/fileHashes/fileHashes.lock
Binary file not shown.
Binary file modified .gradle/7.2/fileHashes/resourceHashesCache.bin
Binary file not shown.
Binary file modified .gradle/buildOutputCleanup/buildOutputCleanup.lock
Binary file not shown.
Binary file modified .gradle/buildOutputCleanup/outputFiles.bin
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import com.severalcircles.flames.data.user.FlamesUser;
import com.severalcircles.flames.data.user.consent.ConsentException;
import com.severalcircles.flames.external.analysis.FinishedAnalysis;
import com.severalcircles.flames.frontend.today.Today;
import net.dv8tion.jda.api.entities.Message;
//import net.dv8tion.jda.api.entities.channel.middleman.MessageChannel;
//import net.dv8tion.jda.api.entitiesGuildMessageChannel;
Expand Down Expand Up @@ -122,6 +123,9 @@ public void processMessage(Message message, FinishedAnalysis finishedAnalysis) t
if (user.getScore() > user.getFunFacts().getHighestFlamesScore()) user.getFunFacts().setHighestFlamesScore(user.getScore());
GlobalData.globalScore += score;
GlobalData.averageScore = GlobalData.globalScore / GlobalData.participants;
if (user.getScore() > Today.highScore) {
Today.highUser = message.getAuthor().getName() + " (" + user.getScore() + ")";
}
}
conversationCache.put(element.getId(), user);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public void run() {
Today.quoteChanges = 0;
Today.quoteLocked = false;
Today.thanks = new LinkedList<>();
Today.highUser = "Nobody yet!";
Date now = new Date();
thanksgiving.set(2021, Calendar.NOVEMBER, 25);
System.out.println(Calendar.getInstance().toInstant().truncatedTo(ChronoUnit.DAYS).compareTo(thanksgiving.toInstant().truncatedTo(ChronoUnit.DAYS)));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public MessageEmbed get() {
.setTitle(title)
.addField(resources.getString("talkingAbout"), trendingEntity, true)
.addField(resources.getString("feeling"), Emotion.getEmotionString(Today.emotion, flamesUser.getConfig().getLocale()), true)
.addField(resources.getString("highUser"), Today.highUser, true)
.addBlankField(false)
.addField("\"" + Today.quote[0] + "\"", "- " + Today.quote[1] + ", " + StringUtil.prettifyDate(Instant.now()), false)
.addBlankField(false)
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/features/TodayEmbed.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
allAbout=...and that's what today is all about.
author=Today, %s
feeling=We're feeling
highUser=The highest scoring user is
talkingAbout=We're talking about
title=Today,
title.thanksgiving=Today, it's Thanksgiving, and
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/features/TodayEmbed_en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
allAbout=...and that's what today is all about.
author=Today, %s
feeling=We're feeling
highUser=The highest scoring user is
talkingAbout=We're talking about
title=Today,
title.thanksgiving=Today, it's Thanksgiving, and
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/features/TodayEmbed_es.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
allAbout=...y de eso se trata hoy.
author=Today, %s
feeling=Estamos sentimiento
highUser=El/la usuario/a con la puntaje mas alta es
talkingAbout=Estamos hablando de
title=Hoy mismo,
title.thanksgiving=Hoy mismo, es la Día de acción de gracias, e
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/features/TodayEmbed_tra.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
allAbout=... And THAT'S Egactly how everything is now -
author=TODAY , HUNDREDS OF %S
feeling=What awaits in
highUser=Caa-caa-caa-caa -
talkingAbout=We talk
title=now
title.thanksgiving=T?d?~`??? , bn? ? s?n? ? th?n?#?cs?g6? ?`???, &
Expand Down

0 comments on commit 056ca3d

Please sign in to comment.