Dateien nach "commands/fun" hochladen

This commit is contained in:
2024-02-07 14:45:22 +00:00
parent 96b5cf5e8e
commit 8d18235233
19 changed files with 429 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
const discord = require("discord.js");
const figlet = require("figlet"); // MAKE SURE TO INSTALL FIGLET PACKAGE OR CODE WONT WORK
module.exports = {
name: "ascii",
aliases: [],
category: "fun",
usage: "ascii <text>",
description: "Gibt bereitgestellten Text im ASCII-Format zurück.",
run: async (client, message, args) => {
let text = args.join(" ");
if(!text) {
return message.channel.send(`Bitte Text für die ASCII-Konvertierung angeben!`)
}
let maxlen = 20
if(text.length > 20) {
return message.channel.send(`Bitte geben Sie Text mit 20 Zeichen oder weniger ein, da die Konvertierung nicht gut sein wird!`)
}
// AGAIN, MAKE SURE TO INSTALL FIGLET PACKAGE!
figlet(text, function(err, data) {
message.channel.send(data, {
code: 'AsciiArt'
});
})
}
};