Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const Discord = require('discord.js');
- const client = new Discord.Client();
- client.on('ready', () => {
- console.log('I am ready!');
- });
- client.on('message', message => {
- if (message.content === 'ping') {
- message.reply('pong');
- }
- });
- // THIS MUST BE THIS WAY
- client.login(process.env.BOT_TOKEN);
Add Comment
Please, Sign In to add comment