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() + ) + ); + + } +}