From a25e912ae5144a7e440ec5c733141e8dba8af263 Mon Sep 17 00:00:00 2001 From: M_Viper Date: Wed, 7 Feb 2024 14:49:31 +0000 Subject: [PATCH] Dateien nach "commands/variables" hochladen --- commands/variables/variable.js | 28 +++++++++++++++++++ commands/variables/variablesgreet.js | 41 ++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 commands/variables/variable.js create mode 100644 commands/variables/variablesgreet.js diff --git a/commands/variables/variable.js b/commands/variables/variable.js new file mode 100644 index 0000000..4a506da --- /dev/null +++ b/commands/variables/variable.js @@ -0,0 +1,28 @@ +const db = require("quick.db"); +const Discord = require ("discord.js") +const { version: discordjsVersion } = require('discord.js'); +module.exports = { + + name: "variable", + + category: "variables", + aliases: ['variable'], + description: 'Zeigt Bot-Variablen an', + run: async (client, message, args ) => { + message.delete(); + message.channel.send(new Discord.MessageEmbed() + .setColor('RANDOM') + .setTitle(`Variables`) + .setThumbnail(client.user.displayAvatarURL({ dynamic: true })) + .addField('Greet-Variablen', `"s!variables-greet"`, true) + .addField('Invites Tracker Variables(coming soon)', `"s!variables-invites"`, true) + .addField('Giveaway Variables', `"s!variables-giveaway(bald verfügbar)"`, true) + .setFooter( + `Difficult-Knights BOT`, + client.user.displayAvatarURL(), + message.delete() + ) + ); + + } +} diff --git a/commands/variables/variablesgreet.js b/commands/variables/variablesgreet.js new file mode 100644 index 0000000..92c77b5 --- /dev/null +++ b/commands/variables/variablesgreet.js @@ -0,0 +1,41 @@ +const db = require("quick.db"); +const Discord = require ("discord.js") +const { version: discordjsVersion } = require('discord.js'); +module.exports = { + + name: "variable-greet", + + category: "variables", + aliases: ['variable'], + description: 'Zeigt Bot-Variablen an', + run: async (client, message, args ) => { + message.delete(); + message.channel.send(new Discord.MessageEmbed() + .setColor('RANDOM') + .setTitle(`**${message.author.tag}**`) + .addField( + "__**❯ Benutzerdefinierte Begrüßungsnachricht**__", + "Die benutzerdefinierten Nachrichtenvariablen, die Sie verwenden können, wenn jemand beitritt. HINWEIS: Diese Variablen können auch in einer Beitrittsnachricht verwendet werden" + ) + .addField( + "**❯ Beispiel**", + "[member:mention] Willkommen bei [guild:name]" + ) + .addField( + "**❯ Variables**", + "`[member:mention] => ping member`" + ) + .addField( + "`[guild:name] => zeigt den Gildennamen an`", + "`[guild:membercount] => zeigt Gildenmitgliederzahl an`" + ) + .setThumbnail(client.user.displayAvatarURL()) + .setTimestamp() + .setFooter( + `Difficult-Knights BOT`, + client.user.displayAvatarURL() + ) + ); + + } +}