mirror of
https://github.com/arthur-pbty/gestion.git
synced 2026-06-12 23:59:20 +02:00
main
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
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);
|
||||
Reference in New Issue
Block a user