feat: add helloWorld listener to respond to "shsf.dev" messages
All checks were successful
CI / build (push) Successful in 14s
All checks were successful
CI / build (push) Successful in 14s
This commit is contained in:
21
src/listeners/messageCreate/shsf.dev.ts
Normal file
21
src/listeners/messageCreate/shsf.dev.ts
Normal 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,
|
||||
},
|
||||
],
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user