From 51a6bdceebcc0b165b582242b848f9fdd842291a Mon Sep 17 00:00:00 2001 From: Zeyo Date: Tue, 7 May 2024 20:24:11 +0530 Subject: [PATCH] minor patches --- src/main/java/me/ailama/commands/AiCommand.java | 1 + src/main/java/me/ailama/tools/TimeTools.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/me/ailama/commands/AiCommand.java b/src/main/java/me/ailama/commands/AiCommand.java index 0a3c0e8..dad628b 100644 --- a/src/main/java/me/ailama/commands/AiCommand.java +++ b/src/main/java/me/ailama/commands/AiCommand.java @@ -132,6 +132,7 @@ public void handleCommand(SlashCommandInteractionEvent event) { if you pass a null value to a argument that specified NOT_NULL in its description then you will be given a bad score. if you don't respect the arguments data type, you will be given a bad score. if you don't respect the arguments description, you will be given a bad score. + the reason should not exceed 200 characters, and if it does, you will be given a bad score. and if you don't follow the schema, you will be given a bad score, but if you follow the schema, you will be given a good score. diff --git a/src/main/java/me/ailama/tools/TimeTools.java b/src/main/java/me/ailama/tools/TimeTools.java index 97b3ff4..086dc48 100644 --- a/src/main/java/me/ailama/tools/TimeTools.java +++ b/src/main/java/me/ailama/tools/TimeTools.java @@ -23,7 +23,7 @@ public String formatTime(final long timeInMillis) { return String.format("%02d:%02d:%02d", hours, minutes, seconds); } - @Tool(name = "time", description = "Get the current time in a specific timezone like time(is24Hour, timeZone)", arguments = { + @Tool(name = "time", description = "Get the current time in a specific timezone time(is24Hour, timeZone)", arguments = { @Args(name = "is24Hour", Type = "boolean", description = "true for 24-hour format, false for 12-hour format"), @Args(name = "timeZone", Type = "string", description = "Timezone in which you want to get the time like 'Asia/Kolkata'") })