Skip to content

Commit b9ad52e

Browse files
trflynn89awesomekling
authored andcommitted
testCommand: Replace SerenityOS emoji with more standard emoji
Use the same emoji used by the test262 runner script for now.
1 parent 24cf2d5 commit b9ad52e

File tree

2 files changed

+17
-25
lines changed

2 files changed

+17
-25
lines changed

src/commands/testCommand.ts

Lines changed: 11 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,7 @@
77

88
import { EmbedBuilder, ChatInputCommandInteraction, SlashCommandBuilder, Client } from "discord.js";
99
import axios from "axios";
10-
import {
11-
getBuggiemagnify,
12-
getBuggus,
13-
getLibjs,
14-
getMakemore,
15-
getNeoyak,
16-
getPoggie,
17-
getSadCaret,
18-
getSkeleyak,
19-
getYak,
20-
getYakslice,
21-
getYaksplode,
22-
getYakstack,
23-
} from "@/util/emoji";
10+
import { getLadybird, getMakemore, getSadCaret } from "@/util/emoji";
2411
import Command from "./command";
2512
import githubAPI from "@/apis/githubAPI";
2613

@@ -155,25 +142,25 @@ export class TestCommand extends Command {
155142
case "total":
156143
return "🧪";
157144
case "passed":
158-
return (await getPoggie(client))?.toString() ?? label;
145+
return "✅";
159146
case "failed":
160-
return (await getYak(client))?.toString() ?? label;
147+
return "❌";
161148
case "skipped":
162-
return (await getBuggiemagnify(client))?.toString() ?? label;
149+
return "⚠️";
163150
case "metadata_error":
164-
return (await getBuggus(client))?.toString() ?? label;
151+
return "📄";
165152
case "harness_error":
166-
return (await getYakslice(client))?.toString() ?? label;
153+
return "⚙️";
167154
case "timeout_error":
168-
return (await getSkeleyak(client))?.toString() ?? label;
155+
return "💀";
169156
case "process_error":
170-
return (await getYaksplode(client))?.toString() ?? label;
157+
return "💥️";
171158
case "runner_exception":
172-
return (await getNeoyak(client))?.toString() ?? label;
159+
return "🐍";
173160
case "todo_error":
174-
return (await getYakstack(client))?.toString() ?? label;
161+
return "📝";
175162
case "percentage_passing":
176-
return (await getLibjs(client))?.toString() ?? label;
163+
return (await getLadybird(client))?.toString() ?? label;
177164
default:
178165
return label;
179166
}

src/util/emoji.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2021, the SerenityOS & Ladybird developers.
2+
* Copyright (c) 2021-2024, the SerenityOS & Ladybird developers.
33
* Copyright (c) 2024, versecafe
44
*
55
* SPDX-License-Identifier: BSD-2-Clause
@@ -85,6 +85,11 @@ export async function getNeoyak(clientOrParent: ClientOrParent): Promise<Emoji |
8585
return await getEmoji(clientOrParent, "neoyak");
8686
}
8787

88+
/** Alias function for the :ladybird: emoji */
89+
export async function getLadybird(clientOrParent: ClientOrParent): Promise<Emoji | null> {
90+
return await getEmoji(clientOrParent, "ladybird");
91+
}
92+
8893
/** Alias function for the :libjs: emoji */
8994
export async function getLibjs(clientOrParent: ClientOrParent): Promise<Emoji | null> {
9095
return await getEmoji(clientOrParent, "libjs");

0 commit comments

Comments
 (0)