Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
21,872
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const {Client, RichEmbed} = require('discord.js');
  2. const bot = new Client();
  3.  
  4. const token = 'YOUR TOKEN';
  5.  
  6. const PREFIX = '!';
  7.  
  8.  
  9. bot.on('ready', () => {
  10.     console.log('This bot is active!');
  11. })
  12.  
  13. bot.on('message', message => {
  14.     let args = message.content.substring(PREFIX.length).split(" ");
  15.    
  16.  
  17.     switch (args[0]) {
  18.         case 'help':
  19.             const Embed = new RichEmbed()
  20.             .setTitle("Helper Embed")
  21.             .setColor(0xFF0000)
  22.             .setDescription("Make sure to use the !help to get access to the commands");
  23.  
  24.             message.author.send(Embed);
  25.         break;
  26.     }
  27.  
  28.  
  29. });
  30.  
  31.            
  32.                        
  33. bot.login(token);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement