1
0
Fork 0
mirror of https://github.com/1disk/edp445.git synced 2024-08-14 22:47:02 +00:00
edp445/functions/cmd-gay.js
2022-11-26 15:27:07 +01:00

18 lines
No EOL
739 B
JavaScript

const Discord = require('discord.js') //Import Discord API
require('discord-inline-reply'); //Import inline replies for Discord API
const fetch = require('node-fetch'); //Import the FETCH API
module.exports = async (message, author, guild, client) => {
try {
message.react("1046014857939537950")
} catch (err) {
message.lineReply("<a:loading:1046014857939537950> Generating the image... It will take a while.")
}
const canvacord = require("canvacord");
let user = message.author
let avatar = user.displayAvatarURL();
let image = await canvacord.Canvas.rainbow(avatar);
let attachment = new Discord.MessageAttachment(image, "sexbot-rainbow.gif");
return message.lineReply(attachment);
}