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.once('ready', () => {
- console.log('Safezone is online!');
- });
- client.on('message', message =>{
- if(!message.content.startsWith(prefix) || message.author.bot) return;
- const args = message.content.slice(prefix.length).split(/ +/);
- const command = args.shift().toLowerCase();
- if(command === 'ping'){
- message.channel.send('pong!');
- } else if (command == 'lol'){
- message.channel.send('whats so funny?');
- }
- });
- client.login('ODQ4NjA5MjYxNDgzNDU4NjEw.YLPG9g.64RjvqNwdmsqqC8hwnbHRURSMDQ')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement