diff --git a/commands/image/Jail.js b/commands/image/Jail.js new file mode 100644 index 0000000..ac1b4cb --- /dev/null +++ b/commands/image/Jail.js @@ -0,0 +1,23 @@ +const Color = "RANDOM"; +const Discord = require("discord.js"); + +module.exports = { + name: "jail", + aliases: ["j"], + category: "Image", + description: "Zeigt ein Bild des Gefängnisses", + usage: "jail ", + run: async (client, message, args) => { + + const Member = message.mentions.members.first() || message.guild.members.cache.get(args[0]) || message.member; + + const Embed = new Discord.MessageEmbed() + .setColor(Color) + .setTitle("Jail") + .setImage(encodeURI + (`https://api.devs-hub.xyz/jail?image=${Member.user.displayAvatarURL({ format: "png" })}`)) + .setTimestamp(); + + return message.channel.send(Embed); + } +}; \ No newline at end of file diff --git a/commands/image/Love.js b/commands/image/Love.js new file mode 100644 index 0000000..a4f0f0f --- /dev/null +++ b/commands/image/Love.js @@ -0,0 +1,31 @@ +const Discord = require("discord.js"); +const fetch = require("node-fetch"); + +module.exports = { + name: "love", + aliases: [], + category: "Image", + description: "Geben Sie einen zufälligen Klaps zurück!", + usage: "qlove user1 user2 | q love id1 id2", + run: async (bot, message, args) => { + + let user = await message.mentions.members.first() || message.guild.members.cache.get(args[0]) || message.guild.members.cache.find(m => m.user.username.toLowerCase() === args[0].toLocaleLowerCase()) || message.guild.members.cache.find(mp => mp.displayName.toLowerCase() === args[0].toLocaleLowerCase()); + let user2 = await message.mentions.members.array()[1] || message.guild.members.cache.get(args[1]) || message.guild.members.cache.find(m => m.user.username.toLowerCase() === args[1].toLocaleLowerCase()) || message.guild.members.cache.find(mp => mp.displayName.toLowerCase() === args[1].toLocaleLowerCase()); + if(!args[0]) return message.channel.send("**Geben Sie den Namen des Liebhabers ein!**") + if(!args[1]) return message.channel.send("**Geben Sie den Namen eines anderen Liebhabers ein!**") + + if (!user) return message.channel.send("**Bitte geben Sie einen gültigen Benutzer ein!**") + if (!user2) return message.channel.send("**Bitte geben Sie einen gültigen Benutzer ein!**") + + let m = await message.channel.send("**Warten Sie mal..**"); + try { + let res = await fetch(encodeURI(`https://nekobot.xyz/api/imagegen?type=ship&user1=${user.user.displayAvatarURL({ format: "png", size: 512 })}&user2=${user2.user.displayAvatarURL({ format: "png", size: 512 })}`)); + let json = await res.json(); + let attachment = new Discord.MessageAttachment(json.message, "love.png"); + message.channel.send(attachment); + m.delete({ timeout: 5000 }); + } catch(e){ + m.edit("Fehler, bitte versuchen Sie es erneut! Jemanden erwähnen"); + } + } +}; \ No newline at end of file diff --git a/commands/image/Trigerm.js b/commands/image/Trigerm.js new file mode 100644 index 0000000..9ea7af8 --- /dev/null +++ b/commands/image/Trigerm.js @@ -0,0 +1,26 @@ +const canvacord = require ("canvacord") + +const { MessageAttachment } = require("discord.js") +module.exports= { + name:"triggered", + description:"jemanden auslösen", + category:"Image", + aliases: ["tg"], +run: async (client, message, args) => { +async function create() { + let img = await canvacord.Canvas.trigger("./image.png"); + canvacord.write(img, "triggered.gif"); + + let color = await canvacord.color("#4E5D94"); + canvacord.write(color, "color.png"); +} + +create() + + let user = message.mentions.users.first() || client.users.cache.get(args[0]) || message.author; + let faceplam = await canvacord.Canvas.trigger(user.displayAvatarURL({ format: "png", dynamic: true })); + let attachment = new MessageAttachment(faceplam, "triggered.gif"); + return message.channel.send(attachment); +} + +} \ No newline at end of file diff --git a/commands/image/achievement.js b/commands/image/achievement.js new file mode 100644 index 0000000..be781aa --- /dev/null +++ b/commands/image/achievement.js @@ -0,0 +1,17 @@ +const { MessageEmbed } = require("discord.js"); + +module.exports = { + name: "achievement", + description: "Gibt dir eine Errungenschaft", + aliases: ["ach"], + category: "Image", + run: async (client, message, args) => { + const text = args.join("+"); + const e = new MessageEmbed() + .setTitle("Minecraft-Erfolg!") + .setImage( + `https://minecraftskinstealer.com/achievement/12/Achievement%20Get!/${text}` + ); + message.channel.send(e); + }, +}; \ No newline at end of file diff --git a/commands/image/avs.js b/commands/image/avs.js new file mode 100644 index 0000000..a7a3e52 --- /dev/null +++ b/commands/image/avs.js @@ -0,0 +1,37 @@ +const { createCanvas, loadImage } = require('canvas'); +const request = require('node-superfetch'); +module.exports = { + + name: "avatarfusion", + aliases: ["avs"], + category: "Image", + description: "", + usage: "[first mention | first username | first ID | first nickname] ", + accessableby: "everyone" + , + run: async (bot, message, args) => { + if (!message.guild.me.hasPermission('ATTACH_FILES')) return message.channel.send("**Fehlende Berechtigungen - [ATTACH_FILES]!**"); + if (!args[0]) return message.channel.send("**Welcher Benutzer möchtest du die Basis sein?**"); + if (!args[1]) return message.channel.send("**Welchen Benutzer möchten Sie über die Basis stellen?**"); + let base = message.mentions.members.first() || message.guild.members.cache.get(args[0]) || message.guild.members.cache.find(r => r.user.username.toLowerCase() === args[0].toLocaleLowerCase()) || message.guild.members.cache.find(r => r.displayName === args[0].toLocaleLowerCase()); + if (!base) return message.channel.send("**Basisbenutzer nicht gefunden!**"); + let overlay = message.mentions.members.first(2)[1] || message.guild.members.cache.get(args[1]) || message.guild.members.cache.find(r => r.user.username.toLowerCase() === args[1].toLocaleLowerCase()) || message.guild.members.cache.find(r => r.displayName === args[1].toLocaleLowerCase()); + if (!overlay) return message.channel.send("**Overlay-Benutzer nicht gefunden!**"); + const baseAvatarURL = base.user.displayAvatarURL({ format: 'png', size: 512 }); + const overlayAvatarURL = overlay.user.displayAvatarURL({ format: 'png', size: 512 }); + try { + const baseAvatarData = await request.get(baseAvatarURL); + const baseAvatar = await loadImage(baseAvatarData.body); + const overlayAvatarData = await request.get(overlayAvatarURL); + const overlayAvatar = await loadImage(overlayAvatarData.body); + const canvas = createCanvas(baseAvatar.width, baseAvatar.height); + const ctx = canvas.getContext('2d'); + ctx.globalAlpha = 0.5; + ctx.drawImage(baseAvatar, 0, 0); + ctx.drawImage(overlayAvatar, 0, 0, baseAvatar.width, baseAvatar.height); + return message.channel.send({ files: [{ attachment: canvas.toBuffer(), name: 'avatarfusion.png' }] }); + } catch (err) { + return message.channel.send(`Oh nein, es ist ein Fehler aufgetreten: \`${err.message}\`. Versuchen Sie es später noch einmal!`); + }; + } +}; \ No newline at end of file diff --git a/commands/image/lol b/commands/image/lol new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/commands/image/lol @@ -0,0 +1 @@ + diff --git a/commands/image/panda.js b/commands/image/panda.js new file mode 100644 index 0000000..df68aa4 --- /dev/null +++ b/commands/image/panda.js @@ -0,0 +1,16 @@ + +const Color = "RANDOM", Random = require("srod-v2"); +const Discord = require("discord.js"); + +module.exports = { + name: "panda", + aliases: ["pandaa"], + category: "Image", + description: "Gib einen zufälligen Panda zurück!", + usage: "Panda", + run: async (client, message, args) => { + + const Data = await Random.GetAnimalImage({ Animal: "panda", Color: Color }); + return message.channel.send(Data); + } +}; diff --git a/commands/image/rip.js b/commands/image/rip.js new file mode 100644 index 0000000..0bd3a0f --- /dev/null +++ b/commands/image/rip.js @@ -0,0 +1,23 @@ +const Color = "RANDOM"; +const Discord = require("discord.js"); + +module.exports = { + name: "rip", + aliases: ["died", ""], + category: "Image", + description: "Zeigt RIP-Erstellung mit Benutzer-Avatar", + usage: "rip ", + run: async (client, message, args) => { + + const Member = message.mentions.members.first() || message.guild.members.cache.get(args[0]) || message.member; + + const Embed = new Discord.MessageEmbed() + .setColor(Color) + .setTitle("Ruhe in Frieden") + .setImage(encodeURI + (`https://api.devs-hub.xyz/rip?image=${Member.user.displayAvatarURL({ format: "png" })}`)) + .setTimestamp(); + + return message.channel.send(Embed); + } +}; \ No newline at end of file diff --git a/commands/image/shit.js b/commands/image/shit.js new file mode 100644 index 0000000..e0b87e0 --- /dev/null +++ b/commands/image/shit.js @@ -0,0 +1,20 @@ +const Discord = require('discord.js') + +module.exports = { + name: "affect", + category: "Image", + description: "betroffen werden, WIRKLICH BEEINFLUSST", + usage: "jail ", + run: async (client, message, args) => { + + const Member = message.mentions.members.first() || message.guild.members.cache.get(args[0]) || message.member; + + const Embed = new Discord.MessageEmbed() + .setColor(Color) + .setImage(encodeURI + (`https://kaskus.cf/api/v1/imagegen/affect?avatar=${Member.user.displayAvatarURL({ format: "png" })}`)) + .setTimestamp(); + + return message.channel.send(Embed); + } +};