feat: add helloWorld listener to respond to "shsf.dev" messages
All checks were successful
CI / build (push) Successful in 14s

This commit is contained in:
Space-Banane
2026-02-27 19:23:14 +01:00
parent 0599410528
commit a6e9a45d43

View File

@@ -0,0 +1,21 @@
import { Client, Events, Message } from "discord.js";
export default async function helloWorld(client: Client): Promise<void> {
client.on(Events.MessageCreate, (message: Message) => {
// Ignore messages from bots
if (message.author.bot) return;
if (message.content.toLowerCase() === "shsf.dev") {
message.reply({
embeds: [
{
title: "SHSF.dev",
description:
"Visit the SHSF GLOBAL website at [shsf.dev](https://shsf.dev).",
color: 0x00ff00,
},
],
});
}
});
}