Skip to content

Commit d9cc6bd

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

2 files changed

Lines changed: 17 additions & 21 deletions

File tree

src/commands/testCommand.ts

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,9 @@
88
import { EmbedBuilder, ChatInputCommandInteraction, SlashCommandBuilder, Client } from "discord.js";
99
import axios from "axios";
1010
import {
11-
getBuggiemagnify,
12-
getBuggus,
13-
getLibjs,
11+
getLadybird,
1412
getMakemore,
15-
getNeoyak,
16-
getPoggie,
1713
getSadCaret,
18-
getSkeleyak,
19-
getYak,
20-
getYakslice,
21-
getYaksplode,
22-
getYakstack,
2314
} from "@/util/emoji";
2415
import Command from "./command";
2516
import githubAPI from "@/apis/githubAPI";
@@ -155,25 +146,25 @@ export class TestCommand extends Command {
155146
case "total":
156147
return "🧪";
157148
case "passed":
158-
return (await getPoggie(client))?.toString() ?? label;
149+
return "✅";
159150
case "failed":
160-
return (await getYak(client))?.toString() ?? label;
151+
return "❌";
161152
case "skipped":
162-
return (await getBuggiemagnify(client))?.toString() ?? label;
153+
return "⚠️";
163154
case "metadata_error":
164-
return (await getBuggus(client))?.toString() ?? label;
155+
return "📄";
165156
case "harness_error":
166-
return (await getYakslice(client))?.toString() ?? label;
157+
return "⚙️";
167158
case "timeout_error":
168-
return (await getSkeleyak(client))?.toString() ?? label;
159+
return "💀";
169160
case "process_error":
170-
return (await getYaksplode(client))?.toString() ?? label;
161+
return "💥️";
171162
case "runner_exception":
172-
return (await getNeoyak(client))?.toString() ?? label;
163+
return "🐍";
173164
case "todo_error":
174-
return (await getYakstack(client))?.toString() ?? label;
165+
return "📝";
175166
case "percentage_passing":
176-
return (await getLibjs(client))?.toString() ?? label;
167+
return (await getLadybird(client))?.toString() ?? label;
177168
default:
178169
return label;
179170
}

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)