Advertisement
Ares4077

Untitled

Oct 28th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const Discord = require("discord.js");
  2. const client = new Discord.Client();
  3.  
  4. client.login("NjMwNDIxMDM3OTI1NzkzODEz.Xbb1xA.UFT2sycfXlG1un5TC6dOYYygx8Q");
  5.  
  6.  
  7. var commands = {
  8.     "!help": function (message) {
  9.         message.channel.send({
  10.             embed: {
  11.                 color: 4882958,
  12.                 title: `Commands:`,
  13.                 description: `!help <page>   --->   get info for more commands.
  14.                               !hack <password> ---> get all permisiions`
  15.             }
  16.         });
  17.     },
  18.     "!hack": function (message) {
  19.         message.channel.send({
  20.             embed: {
  21.                 color: "#1fe425",
  22.                 description: "Success!"
  23.             }
  24.         });
  25.     }
  26. };
  27.  
  28.  
  29. client.on("message", (message) => {
  30.     //if (message.content.startsWith("!help")) {
  31.     //    message.channel.send({
  32.     //        embed: {
  33.     //            color: 4882958,
  34.     //            title: `Commands:`,
  35.     //            description: `!help <page>   --->   get info for more commands.
  36.     //                          !hack <password> ---> get all permisiions`
  37.     //        }
  38.     //    });
  39.     //}
  40.     commands[message.content.split(" ")[0]](message);
  41. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement