Skip to content

Commit

Permalink
[Release] 0.2.8
Browse files Browse the repository at this point in the history
  • Loading branch information
leomotors committed Jan 30, 2022
1 parent 0af226f commit c8419f0
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

## [0.2.8] - 2022-01-30

- Fix Misc Mistake

## [0.2.7] - 2022-01-30

- Updated Embeds ✨✨
Expand Down
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Cocoa Grader

A Discord Bot Grader
A Discord Bot Grader, more specifically, '*Waifu*'

~~Created to compete with [Cafe Grader](https://github.com/cafe-grader-team/cafe-grader-web)~~

Expand All @@ -15,3 +15,17 @@ A Discord Bot Grader
- gcc

- pshved/timeout installed to bin, [see here](https://unix.stackexchange.com/a/44988)

- Use some powerful devices (I use Raspberry Pi 😖)

## 🖼️ Gallery of Cocoa Grader

*Screenshot at Version 0.2.7*

![](./images/submit_0.2.7.png)

![](./images/getstatement_0.2.7.png)

![](./images/aboutme_0.2.7.png)

![](./images/status_0.2.7.png)
Binary file added images/aboutme_0.2.7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/getstatement_0.2.7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/status_0.2.7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/submit_0.2.7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cocoa-grader",
"version": "0.2.7",
"version": "0.2.8",
"description": "Discord Bot Grader",
"main": "dist/bot/client.js",
"repository": "https://github.com/Leomotors/cocoa-grader",
Expand Down
6 changes: 6 additions & 0 deletions src/bot/commands/message/submit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ function EmbedGen(msg: Message, result: Verdict, perf: number) {
value: `${process.platform} ${process.arch}`,
inline: true,
},
{
name: "Grader Version",
value: process.env.npm_package_version ?? "Unknown",
inline: true,
},
{
name: "Time Compensation",
value: `${process.env.EXTRA_TIME ?? 1}x`,
Expand Down Expand Up @@ -134,6 +139,7 @@ export const submit: CocoaMessage = {
const perf = performance.now() - start;

sentmsg.edit({
content: "Graded!",
embeds: [EmbedGen(msg, result, perf).toJSON()],
});
},
Expand Down

0 comments on commit c8419f0

Please sign in to comment.