Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const discord = require("discord.js");
- const client = new discord.Client();
- const prefix = '!';
- client.on('ready', () => {
- console.log("iam online")
- })
- client.on('message', message => {
- if (message.content === `${prefix}ping`)
- message.channel.send("pong!")
- })
- client.login("Your very secret token here")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement