Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const Discord = require("discord.js")
- const Canvas = require("canvas")
- const snekfetch = require("snekfetch")
- module.exports.run = async (bot, message, args) => {
- const canvas = Canvas.createCanvas(690, 245)
- const ctx = canvas.getContext('2d')
- const background = await Canvas.loadImage('../Images/background.jpg')
- ctx.drawImage(background, 0, 0, canvas.width, canvas.height)
- const attachment = new Discord.Attachment(canvas.toBuffer(), 'profile.png')
- message.channel.send("Testing message", attachment)
- }
- module.exports.help = {
- name: "profile"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement