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.login("NjMwNDIxMDM3OTI1NzkzODEz.Xbb1xA.UFT2sycfXlG1un5TC6dOYYygx8Q");
- var commands = {
- "!help": function (message) {
- message.channel.send({
- embed: {
- color: 4882958,
- title: `Commands:`,
- description: `!help <page> ---> get info for more commands.
- !hack <password> ---> get all permisiions`
- }
- });
- },
- "!hack": function (message) {
- message.channel.send({
- embed: {
- color: "#1fe425",
- description: "Success!"
- }
- });
- }
- };
- client.on("message", (message) => {
- //if (message.content.startsWith("!help")) {
- // message.channel.send({
- // embed: {
- // color: 4882958,
- // title: `Commands:`,
- // description: `!help <page> ---> get info for more commands.
- // !hack <password> ---> get all permisiions`
- // }
- // });
- //}
- commands[message.content.split(" ")[0]](message);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement