Simpleboy353 / REAPER-2.0

A multi-purpose discord bot made using Discord.js V14. Includes Logging, Welcomer, Slash Commands, Menu based Help Command and so much more!
GNU General Public License v3.0
327 stars 225 forks source link

slash comand for the hack commands??? #75

Closed NotMinhDucGamingTV closed 3 years ago

Simpleboy353 commented 3 years ago

You can add it your self, just do two things:

/**
* add options as mentionable
* replace message with interaction
*/
module.exports = {
    name: "hack",
    description: "hack command",
    options: [
        {
            name: "user",
            description: "User to hack!",
            type: "MENTIONABLE",
            required: true
        }
    ],
    run: async(client, interaction, args) => {
    const target = await interaction.options.getMentionable("user"); // Mentioned User
    // Continue the command here.
    }
}

Same applies to other commands. Just change the options accordingly. If you want no options or want the command to take no input, just do

options: null
NotMinhDucGamingTV commented 3 years ago

Copied the original cmd then edited like uou said and it just go bruhhh

NotMinhDucGamingTV commented 3 years ago

if i copy+ paste the orginal command and it have: if (!args[0]) { return message.channel.send( "Woah.... Slow Down!! Who are we hacking..??" ); } const tohack = message.mentions.members.first(); let msg = await message.channel.send(Hacking ${tohack.displayName}....);

let time = "1s";
setTimeout(function () {
  msg.edit(`Finding ${tohack.displayName}'s Email and Password.....`);
}, ms(time));

let time1 = "6s";
setTimeout(function () {
  msg.edit(`E-Mail: ${tohack.displayName}@gmail.com \nPassword: ********`);
}, ms(time1));

let time2 = "9s";
setTimeout(function () {
  msg.edit("Finding Other Accounts.....");
}, ms(time2));

let time3 = "15s";
setTimeout(function () {
  msg.edit("Setting up Epic Games Account.....");
}, ms(time3));

let time4 = "21s";
setTimeout(function () {
  msg.edit("Hacking Epic Games Account......");
}, ms(time4));

let time5 = "28s";
setTimeout(function () {
  msg.edit("Hacked Epic Games Account!!");
}, ms(time5));

let time6 = "31s";
setTimeout(function () {
  msg.edit("Collecting Info.....");
}, ms(time6));

let time7 = "38s";
setTimeout(function () {
  msg.edit("Selling data to FBI....");
}, ms(time7));

let time8 = "41s";
setTimeout(function () {
  msg.edit(`Finished Hacking ${tohack.displayName}`);
}, ms(time8));

}, i need to replace the message right?

NotMinhDucGamingTV commented 3 years ago

ok,it work out.thank again