Dateien nach "commands/help" hochladen

This commit is contained in:
M_Viper 2024-02-07 14:45:57 +00:00
parent 1b6f612562
commit f4735e766e
6 changed files with 227 additions and 0 deletions

30
commands/help/Added.js Normal file
View File

@ -0,0 +1,30 @@
const Discord = require('discord.js')
const { parse } = require("twemoji-parser");
const { MessageEmbed } = require("discord.js");
module.exports = {
name: "add-these",
category: "moderation",
run: async (client, message, args) => {
if (!message.member.hasPermission("MANAGE_EMOJIS")) {
return message.channel.send(`:x: | **You Don't Have Permission To Use This Command**`)
}
const emojis = args.join(" ").match(/<?(a)?:?(\w{2,32}):(\d{17,19})>?/gi)
if (!emojis) return message.channel.send(`:x: | **Geben Sie die hinzuzufügenden Emojis an**`);
emojis.forEach(emote => {
let emoji = Discord.Util.parseEmoji(emote);
if (emoji.id) {
const Link = `https://cdn.discordapp.com/emojis/${emoji.id}.${
emoji.animated ? "gif" : "png"
}`
message.guild.emojis.create(
`${Link}`,
`${`${emoji.name}`}`
).then(em => message.channel.send(em.toString() + " added!")).catch(error => {
message.channel.send(":x: | es ist ein Fehler aufgetreten")
console.log(error)
})
}
})
}
}

23
commands/help/announce.js Normal file
View File

@ -0,0 +1,23 @@
const Discord = require ('discord.js')
const { MessageEmbed } = require('discord.js')
module.exports = {
name: "announce",
aliases: ["", "a"],
category: "moderation",
usage: "<text to say> einbetten",
description: "Gibt bereitgestellten Text im Embed-Formular zurück.",
run: async(client, message, args) => {
if(!message.member.hasPermission("ADMINISTRATION")) return message.channel.send(`SIE HABEN KEINE BERECHTIGUNG`)
await message.delete()
let say = message.content.split(" ").slice(1).join(" ")
if(!say) return message.channel.send(`❌ | `+"Ich kann keine leere Nachricht wiederholen")
let embed = new MessageEmbed()
.setAuthor(message.author.username, message.author.avatarURL())
.setDescription(`${say}`)
.setColor("RANDOM")
.setFooter(` ${message.guild}`)
.setTimestamp()
message.channel.send(embed)
}
}

58
commands/help/bug.js Normal file
View File

@ -0,0 +1,58 @@
const discord = require("discord.js");
module.exports = {
name: "bug",
category: "moderation",
args: true,
description:
"Bitte spezifizieren Sie den Fehler. Beispiel:\n`Punch funktioniert nicht. Es erwähnt nicht den Benutzer, den ich zu schlagen versuche`",
usage:
"Bitte spezifizieren Sie den Fehler. Beispiel:\n`Punch funktioniert nicht. Es erwähnt nicht den Benutzer, den ich zu schlagen versuche`",
run: async (client, message, args) => {
// again make this fit your command handler style 😀
args = args.join(" ");
const channels = message.channel;
let check;
if (args[0] === "temp") {
check = "true";
} else if (args[1] === "temp") {
check = "true";
} else {
check = "false";
}
let check2;
if (args[0] === "temp") {
check2 = "86400";
} else if (args[1] === "temp") {
check2 = "86400";
} else {
check2 = "0";
}
message.reply(
"Vielen Dank, dass Sie einen Fehler gemeldet haben! Wir werden Ihren Bericht prüfen\nwir senden Ihnen eine DM, wenn dieser Fehler behoben ist\n bitte aktivieren Sie auch alle DM-Berechtigungen"
);
channels
.createInvite({
temporary: `${check}`,
maxAge: `${check2}`,
maxUses: 0,
reason: `Angefordert von: ${message.author.username}`
})
.then(InviteCode =>
client.channels.cache.get("972046537813266462").send(
new discord.MessageEmbed()
.setTitle("New Report Bug")
.addField(
"User Name",
`**${message.author.username}#${message.author.discriminator}**`
)
.addField("ID User", message.author.id)
.addField("Reported", args)
.addField("Server Name", `**${message.guild.name}**`)
.addField("ID Server", `**${message.guild.id}**`)
.addField("USER SEARCH", `**[Click Here](https://discordapp.com/users/${message.guild.id}/)**`)
.addField(`Link Server`, `https://discord.gg/${InviteCode.code}`)
.setColor("RANDOM")
)
);
}
};

91
commands/help/help.js Normal file
View File

@ -0,0 +1,91 @@
const ButtonPages = require('discord-button-pages');
const { MessageEmbed } = require('discord.js')
const disbutpages = require("discord-embeds-pages-buttons")
const Discord = require("discord.js");
const disbut = require("discord-buttons");
const MessageButton = require("discord-buttons");
module.exports = {
name: "help",
description:
"Holen Sie sich eine Liste aller Befehle und lernen Sie sogar alle Befehlsdetails kennen",
usage: "help <cmd>",
category: "info",
run: async (client, message, args) => {
let helpEmbed = new MessageEmbed()
.setTitle("**Hier sind __Difficult-Knights Bot__-Befehle**")
.setDescription("**Command Liste**")
.addField(
"• **ADMIN**",
"```emojiadd, add-these, announce, bug, addrole, ban, purge, hackban, kick, lock, mute, removerole, resetwarns, setnick, setmodlog, slowmode, unlock, unmute, voicekick, warn, warnings, setwelcome , nuke```"
)
.addField(
"• **GENERAL**",
"```servericon , calculator , invite , membercount , help , serverinfo , leaderboard``` "
)
.addField(
"• **GIVEAWAY**",
"```gstart , gend , greroll```"
)
.addField(
"• **ANREGUNG**",
"```sreply, setsuggest, suggest```"
)
.addField(
"• **UTILITY**",
"```discriminator, findemoji, haste, sudo , timedifference```"
)
.addField(
"• **LEVEL**",
"```lb, rank```"
)
.addField(
"• **SUCHEN**",
"```anime, discord, github, ig, npm, twitter```"
)
.addField(
"• **ECONOMY**",
"```balance, daily, fish, addmoney, beg, buy, deposit, leaderboard, pay, removemoney, roulette, sell, slots, shop, coins-system, withdraw, work```"
)
.addField(
"• **BACKUP**",
"```backup-load, info-backup, backup-create```"
)
.addField(
"• **INFO**",
"```inv, help, invite, invites, badges, botinfo, embedgen, imdb, ping, pokemon, serverinfo, servericon, snipe, uptime, userinfo``` "
)
.addField(
"• **MUSIK**",
"```loop, clear, disable-loop, join, leave, nowplaying, play, playlist, pause, queue, resume, shuffle, skip, stop, volume```"
)
.addField(
"• **BILDER**",
"```neko, slap, jail, love, triggered, achievement, avatarfusion, panda, rip, affect``` "
)
.addField(
"• **MODERATION**",
"```lockchannel , purge , slowmode , mute , unmute , nuke```"
)
.addField(
"• **OWNER**",
"```eval , reload , serverlist , test1```"
)
.addField(
"• **FUN**",
"```advice, ascii, cat, cry, dog, fact, hug, joke, kiss, kpop, math, meme, pat, punch, avatar``` "
)
.addField('Wichtige Links ','**[Invite Me](https://discord.com/api/oauth2/authorize?client_id=974563800319676446&permissions=8&scope=bot)** **• [Support](https://difficult-knights.de/index.php?site=ticketcenter)** | **[Website](https://difficult-knights.de)**')
.setThumbnail(client.user.displayAvatarURL())
.setFooter(
`Difficult-Knights Bot`,
client.user.displayAvatarURL(),
message.delete()
);
message.channel.send(helpEmbed)
},
};

24
commands/help/invite.js Normal file
View File

@ -0,0 +1,24 @@
const discord = require("discord.js");
module.exports = {
name: "invite",
category: "info",
description: "INVITE Difficult-Knights BOT",
run: async (client, message, args) => {
let embed = new discord.MessageEmbed()
.setTitle(`Invite Me`)
.setDescription(`• [Invite Me](https://discord.com/api/oauth2/authorize?client_id=974563800319676446&permissions=8&scope=bot)`)
.setColor("RANDOM")
.setThumbnail(client.user.displayAvatarURL())
.setFooter(
`Difficult-Knights Bot`,
client.user.displayAvatarURL(),
message.delete()
);
message.channel .send(embed)
}
}

1
commands/help/lol Normal file
View File

@ -0,0 +1 @@