mirror of
https://github.com/arthur-pbty/gestion.git
synced 2026-06-03 23:36:35 +02:00
16 lines
330 B
JavaScript
16 lines
330 B
JavaScript
const Discord = require('discord.js');
|
|
require('dotenv').config();
|
|
|
|
const client = new Discord.Client();
|
|
|
|
client.on('ready', () => {
|
|
console.log(`Bot is ready as: ${client.user.tag}`);
|
|
});
|
|
|
|
client.on('message', message => {
|
|
if (message.content === 'ping') {
|
|
message.reply('pong');
|
|
}
|
|
});
|
|
|
|
client.login(process.env.TOKEN); |