From 67d53818f3ea2821f4ecc67925639b1dec77692a Mon Sep 17 00:00:00 2001 From: grngxd <36968271+grngxd@users.noreply.github.com> Date: Thu, 31 Jul 2025 12:03:55 +0100 Subject: [PATCH] stub --- index.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/index.ts b/index.ts index c557adf..6c2a01c 100644 --- a/index.ts +++ b/index.ts @@ -1,9 +1,16 @@ import { Client, Events, GatewayIntentBits } from 'discord.js'; -const client = new Client({ intents: [GatewayIntentBits.Guilds] }); +const client = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.MessageContent] }); client.once(Events.ClientReady, (c) => { - console.log(`Ready! Logged in as ${c.user.tag}`); + console.log(c.user.tag); +}); + +client.on(Events.MessageCreate, async (message) => { + if (message.author.bot) return; + if (client.user && message.mentions.has(client.user)) { + await message.reply(`hi ${message.author}\n-# TODO: make this show user info`); + } }); client.login(process.env.TOKEN).catch((err) => {