From 73ed366b86064c0b99852226be3cb0325f3b74bd Mon Sep 17 00:00:00 2001 From: "Leomotors (Ubuntu)" <59821765+Leomotors@users.noreply.github.com> Date: Sun, 30 Jan 2022 19:24:52 +0700 Subject: [PATCH] [Release] 1.0.0 --- CHANGELOG.md | 4 ++++ package.json | 2 +- src/bot/client.ts | 2 +- src/bot/commands/message/submit.ts | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6ca6a78..988a556 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to Kawaii Cocoa Grader will be documented here Changelog before 0.2.2 will not be noted here +## [1.0.0] - 2022-01-30 + +- Everything is settled, Release 1.0.0! Let's go!!! + ## [0.2.9] - 2022-01-30 - It is normal for Idea to come in after I publish a release diff --git a/package.json b/package.json index 83be1e1..5a23aa2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cocoa-grader", - "version": "0.2.9", + "version": "1.0.0", "description": "Discord Bot Grader", "main": "dist/bot/client.js", "repository": "https://github.com/Leomotors/cocoa-grader", diff --git a/src/bot/client.ts b/src/bot/client.ts index 777417b..920d63d 100644 --- a/src/bot/client.ts +++ b/src/bot/client.ts @@ -31,6 +31,7 @@ const slashcenter = new SlashCenter( process.env.GUILD_IDS?.split(",") ?? [] ); slashcenter.addCog(Cocoa); +slashcenter.validateCommands(); const groupLoader = new ActivityGroupLoader("data/activities.json"); @@ -38,7 +39,6 @@ client.on("ready", (cli) => { console.log( chalk.cyan(`ココアお姉ちゃん 「${cli.user.tag}」 は準備完了です`) ); - slashcenter.validateCommands(); slashcenter.syncCommands(); useActivityGroup(client, groupLoader); }); diff --git a/src/bot/commands/message/submit.ts b/src/bot/commands/message/submit.ts index 4e800ba..a7652bd 100644 --- a/src/bot/commands/message/submit.ts +++ b/src/bot/commands/message/submit.ts @@ -20,7 +20,7 @@ function EmbedGen(msg: Message, result: Verdict, perf: number, lang: string) { .setAuthor(Author(msg)) .setTitle(pb.title) .setDescription( - `Description: ${pb.description}\nTime Limit: ${pb.timelimit} seconds\nMemory Limit: ${pb.memorylimit} MB\nSubmission Status: ${result.status}\nSubtasks Verdict: [${result.subtasks}]` + `Description: ${pb.description}\nTime Limit: ${pb.timelimit} seconds\nMemory Limit: ${pb.memorylimit} MB\nSubmission Status: **${result.status}**\nSubtasks Verdict: [${result.subtasks}]` ) .setColor(Cocoa.Color) .setThumbnail(Cocoa.GIF.NoPoi)