Add files via upload

This commit is contained in:
2022-11-22 19:53:50 +01:00
committed by GitHub
parent e4415f9180
commit 553fcd87cf
12 changed files with 750 additions and 0 deletions

27
Commands/ban.js Normal file
View File

@ -0,0 +1,27 @@
const { EmbedBuilder, SlashCommandBuilder, PermissionFlagsBits } = require('discord.js');
module.exports = {
name: "ban",
description: "Ban users",
options: [],
CommandCreator() {
const data = new SlashCommandBuilder()
.setName(this.name)
.setDefaultMemberPermissions(PermissionFlagsBits.KickMembers)
.setDescription(this.description)
.setDefaultMemberPermissions(PermissionFlagsBits.BanMembers)
.addMentionableOption(option => option.setName("target").setDescription("target to Ban").setRequired(true))
.addStringOption(option => option.setName("reason").setDescription("Reason to take action").setRequired(true));
return data.toJSON();
},
async run(bot, interaction) {
interaction.reply("not implemented")
.catch(err => {
console.log(err)
return
});
},
}

32
Commands/clear.js Normal file
View File

@ -0,0 +1,32 @@
const { EmbedBuilder, SlashCommandBuilder, PermissionFlagsBits } = require('discord.js');
module.exports = {
name: "clear",
description: "Bulkdeletes a set Amount of Messages",
options: [],
CommandCreator() {
const data = new SlashCommandBuilder()
.setName(this.name)
.setDescription(this.description)
.setDefaultMemberPermissions(PermissionFlagsBits.ManageMessages)
.addIntegerOption(option => option.setName("amount").setDescription("the amount of messages to remove").setMinValue(1).setRequired(true));
return data.toJSON();
},
async run(bot, interaction) {
interaction.channel.bulkDelete(interaction.options.getInteger("amount"))
.then(interaction.channel.send(`Ich habe ${interaction.options.getInteger("amount")} Nachrichten gelöscht!`)
.then(msg => {
setTimeout(() => {
msg.delete();
},5000)
})
)
.catch(err => {
console.log(err)
return
});
},
}

33
Commands/help.js Normal file
View File

@ -0,0 +1,33 @@
const { EmbedBuilder, SlashCommandBuilder } = require('discord.js');
module.exports = {
name: "help",
description: "Displays the bots Help page",
options: [],
CommandCreator() {
const data = new SlashCommandBuilder()
.setName(this.name)
.setDescription(this.description);
return data.toJSON();
},
async run(bot, interaction) {
const userEmbed = new EmbedBuilder()
.setColor('#0099ff')
.setTitle('Dev Pengu Help')
.setURL('https://frankenbot.io/help')
.setDescription('A List of Commands for Dev Pengu')
.addFields(
{ name: '**Help**', value: '`/help`' },
{ name: '**Clear**', value: '`/clear amount`' },
)
interaction.reply({ embeds: [userEmbed] })
.catch(err => {
console.log(err)
return
});
},
}

27
Commands/kick.js Normal file
View File

@ -0,0 +1,27 @@
const { EmbedBuilder, SlashCommandBuilder, PermissionFlagsBits } = require('discord.js');
module.exports = {
name: "kick",
description: "Kick users",
options: [],
CommandCreator() {
const data = new SlashCommandBuilder()
.setName(this.name)
.setDefaultMemberPermissions(PermissionFlagsBits.KickMembers)
.setDescription(this.description)
.setDefaultMemberPermissions(PermissionFlagsBits.KickMembers)
.addMentionableOption(option => option.setName("target").setDescription("target to Kick").setRequired(true))
.addStringOption(option => option.setName("reason").setDescription("Reason to take action").setRequired(true));
return data.toJSON();
},
async run(bot, interaction) {
interaction.reply("not implemented")
.catch(err => {
console.log(err)
return
});
},
}

27
Commands/mute.js Normal file
View File

@ -0,0 +1,27 @@
const { EmbedBuilder, SlashCommandBuilder, PermissionFlagsBits } = require('discord.js');
module.exports = {
name: "mute",
description: "Mute users",
options: [],
CommandCreator() {
const data = new SlashCommandBuilder()
.setName(this.name)
.setDefaultMemberPermissions(PermissionFlagsBits.KickMembers)
.setDescription(this.description)
.setDefaultMemberPermissions(PermissionFlagsBits.MuteMembers)
.addMentionableOption(option => option.setName("target").setDescription("target to mute").setRequired(true))
.addStringOption(option => option.setName("reason").setDescription("Reason to take action").setRequired(true));
return data.toJSON();
},
async run(bot, interaction) {
interaction.reply("not implemented")
.catch(err => {
console.log(err)
return
});
},
}

32
Commands/stats.js Normal file
View File

@ -0,0 +1,32 @@
const { EmbedBuilder, SlashCommandBuilder } = require('discord.js');
module.exports = {
name: "stats",
description: "Displays your stats",
options: [],
CommandCreator() {
const data = new SlashCommandBuilder()
.setName(this.name)
.setDescription(this.description);
return data.toJSON();
},
async run(bot, interaction) {
const userEmbed = new EmbedBuilder()
.setColor('#0099ff')
.setTitle(interaction.user.tag + " Stats")
.setDescription('A List of Commands for Dev Pengu')
.addFields(
{ name: '**XP**', value: '0', inline: true },
{ name: '**Level**', value: '0', inline: true },
)
interaction.reply({ embeds: [userEmbed] })
.catch(err => {
console.log(err)
return
});
},
}

27
Commands/warn.js Normal file
View File

@ -0,0 +1,27 @@
const { EmbedBuilder, SlashCommandBuilder, PermissionFlagsBits } = require('discord.js');
module.exports = {
name: "warn",
description: "Warn users",
options: [],
CommandCreator() {
const data = new SlashCommandBuilder()
.setName(this.name)
.setDefaultMemberPermissions(PermissionFlagsBits.KickMembers)
.setDescription(this.description)
.setDefaultMemberPermissions(PermissionFlagsBits.ModerateMembers)
.addMentionableOption(option => option.setName("target").setDescription("target to warn").setRequired(true))
.addStringOption(option => option.setName("reason").setDescription("Reason to take action").setRequired(true));
return data.toJSON();
},
async run(bot, interaction) {
interaction.reply("not implemented")
.catch(err => {
console.log(err)
return
});
},
}