Skip to content

Commit 88dd63e

Browse files
committed
Generative AI and Java-specific info for QOTW
1 parent 39b43ea commit 88dd63e

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/main/java/net/javadiscord/javabot/systems/qotw/jobs/QOTWJob.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
import java.util.Optional;
2626
import java.util.Set;
2727

28+
import javax.annotation.PostConstruct;
29+
2830
/**
2931
* Job which posts a new question to the QOTW channel.
3032
*/
@@ -41,6 +43,7 @@ public class QOTWJob {
4143
* @throws SQLException if an SQL error occurs
4244
*/
4345
@Scheduled(cron = "0 0 9 * * 1") // Monday, 09:00 UTC
46+
@PostConstruct
4447
public void execute() throws SQLException {
4548
for (Guild guild : jda.getGuilds()) {
4649
GuildConfig config = botConfig.get(guild);
@@ -79,7 +82,7 @@ public void execute() throws SQLException {
7982
OffsetDateTime checkTime = OffsetDateTime.now().plusDays(6).withHour(22).withMinute(0).withSecond(0);
8083
return new EmbedBuilder()
8184
.setTitle("Question of the Week #" + question.getQuestionNumber())
82-
.setDescription(String.format("%s%n%nClick the button below to submit your answer.%nYour answer will be checked by <t:%d:F>",
85+
.setDescription(String.format("%s%n%nClick the button below to submit your answer.%nYour answer will be checked by <t:%d:F>%nUse of generative AI tools like ChatGPT is __not__ allowed",
8386
question.getText(), checkTime.toEpochSecond()))
8487
.build();
8588
}

src/main/java/net/javadiscord/javabot/systems/qotw/submissions/SubmissionManager.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,10 @@ private CompletableFuture<List<Message>> getMessagesByUser(@NotNull ThreadChanne
264264
.addField("Note",
265265
"""
266266
To maximize your chances of getting this week's QOTW Point make sure to:
267-
— Provide a **Code example** (if possible)
268-
— Try to answer the question as detailed as possible.
267+
- Provide a **Code example** (if possible)
268+
- Try to answer the question as detailed as possible.
269+
- Do not use generative AI tools like ChatGPT for answering the question.
270+
- Make sure your answer is specific to Java.
269271
270272
Staff usually won't reply in here.""", false)
271273
.setTimestamp(Instant.now())

0 commit comments

Comments
 (0)