Minty U

index.js

File mode changed
1 +const { Client, Intents } = require('discord.js');
2 +
3 +const client = new Client({ intents: [Intents.FLAGS.GUILDS] });
4 +
5 +client.on('ready', () => {
6 + console.log(`Logged in as ${client.user.tag}!`);
7 +});
8 +
9 +client.on('message', msg => {
10 + if (msg.content === 'ping') {
11 + msg.reply('Pong!');
12 + }
13 +});
14 +
15 +client.login('token');
...\ No newline at end of file ...\ No newline at end of file