showing results for - "create commands in disocrd js"
Ashley
18 Jan 2020
1const { prefix, token } = require('./config.json');
2// ...
3client.login(token);
4
5
6
7//........................................
8client.on('message', message => {
9	if (message.content === `${prefix}ping`) {
10		message.channel.send('Pong.');
11	} else if (message.content === `${prefix}beep`) {
12		message.channel.send('Boop.');
13	}
14});