import { Client, Events, GatewayIntentBits } from 'discord.js'; const client = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.MessageContent] }); client.once(Events.ClientReady, (c) => { 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) => { console.error('Failed to login:', err) process.exit(1) });