|
|
@ -28,7 +28,7 @@ module.exports = class idubbbzCommand extends Command {
|
|
|
|
const ctx = canvas.getContext('2d')
|
|
|
|
const ctx = canvas.getContext('2d')
|
|
|
|
const background = await loadImage(image);
|
|
|
|
const background = await loadImage(image);
|
|
|
|
ctx.drawImage(background, 140, 30, 400, 400);
|
|
|
|
ctx.drawImage(background, 140, 30, 400, 400);
|
|
|
|
const { body: buffer } = await superagent.get('https://image.noelshack.com/fichiers/2018/41/7/1539534415-untitled.png');
|
|
|
|
const { body: buffer } = await superagent.get('https://image.noelshack.com/fichiers/2018/41/7/1539534719-untitled.png');
|
|
|
|
const bg = await loadImage(buffer);
|
|
|
|
const bg = await loadImage(buffer);
|
|
|
|
ctx.drawImage(bg, 0, 0, canvas.width, canvas.height);
|
|
|
|
ctx.drawImage(bg, 0, 0, canvas.width, canvas.height);
|
|
|
|
|
|
|
|
|
|
|
|