View difference between Paste ID: JVa0h1E1 and V2iHdvC0
SHOW: | | - or go back to the newest paste.
1
const Discord = require('discord.js');
2
3
const bot = new Discord.Client();
4
5
bot.on('ready', () => {
6
	console.log("I am ready");
7
});
8
9
bot.on('message', message => {
10
	if(message.author !== bot.user) return;
11
12
	if(message.content === "hello") {
13
		message.channel.sendMessage("world");
14
	}
15
});
16
17
bot.login("<SUPER SECRET TOKEN>");