Showing
2 changed files
with
15 additions
and
0 deletions
.gitignore
0 → 100644
File mode changed
index.js
0 → 100644
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 |
-
Please register or login to post a comment