Dateien nach "commands/image" hochladen
This commit is contained in:
parent
f4735e766e
commit
cd5f32bb1c
|
@ -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 <user>",
|
||||
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);
|
||||
}
|
||||
};
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
};
|
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
|
@ -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);
|
||||
},
|
||||
};
|
|
@ -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] <second mention | second username | second ID | second 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!`);
|
||||
};
|
||||
}
|
||||
};
|
|
@ -0,0 +1 @@
|
|||
|
|
@ -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);
|
||||
}
|
||||
};
|
|
@ -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 <user>",
|
||||
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);
|
||||
}
|
||||
};
|
|
@ -0,0 +1,20 @@
|
|||
const Discord = require('discord.js')
|
||||
|
||||
module.exports = {
|
||||
name: "affect",
|
||||
category: "Image",
|
||||
description: "betroffen werden, WIRKLICH BEEINFLUSST",
|
||||
usage: "jail <user>",
|
||||
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);
|
||||
}
|
||||
};
|
Loading…
Reference in New Issue