Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const Discord = require('discord.js')
- const client = new Discord.Client();
- client.once('ready', () => {
- console.log('__ is online')
- });
- const prefix = '!';
- 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().toLocaleLowerCase();
- if(command === 'ping'){
- message.channel.send('pong!');
- }
- else if (command == 'who is the best?'){
- message.channel.send('fakingfog is the best!');
- }
- });
- client.login('discord bot token here')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement