reverted changes

This commit is contained in:
loicbersier 2018-10-15 15:48:10 +02:00
parent 177d305a2f
commit 2afdfeefae
6 changed files with 6 additions and 18 deletions

View file

@ -26,9 +26,7 @@ module.exports = class godCommand extends Command {
const ctx = canvas.getContext('2d')
const background = await loadImage(image);
ctx.drawImage(background, 20, 80, 275, 250);
const { body: buffer } = await superagent.get('https://image.noelshack.com/fichiers/2018/42/1/1539555260-untitled.png').catch(error => {
message.say('an error as occured. please try again.')
});
const { body: buffer } = await superagent.get('https://image.noelshack.com/fichiers/2018/42/1/1539555260-untitled.png');
const bg = await loadImage(buffer);
ctx.drawImage(bg, 0, 0, canvas.width, canvas.height);

View file

@ -24,9 +24,7 @@ module.exports = class humanCommand extends Command {
const canvas = createCanvas(578, 400)
const ctx = canvas.getContext('2d')
const background = await loadImage('https://image.noelshack.com/fichiers/2018/42/1/1539594726-untitled.png').catch(error => {
message.say('an error as occured. please try again.')
});
const background = await loadImage('https://image.noelshack.com/fichiers/2018/42/1/1539594726-untitled.png');
ctx.drawImage(background, 0, 0, canvas.width, canvas.height);
const { body: buffer } = await superagent.get(image);
const bg = await loadImage(buffer);

View file

@ -50,9 +50,7 @@ module.exports = class idubbbzCommand extends Command {
const ctx = canvas.getContext('2d')
const background = await loadImage(image);
ctx.drawImage(background, 620, 100, 200, 200);
const { body: buffer } = await superagent.get('https://image.noelshack.com/fichiers/2018/41/7/1539510207-untitled.png').catch(error => {
message.say('an error as occured. please try again.')
});
const { body: buffer } = await superagent.get('https://image.noelshack.com/fichiers/2018/41/7/1539510207-untitled.png');
const bg = await loadImage(buffer);
ctx.drawImage(bg, 0, 0, canvas.width, canvas.height);
ctx.font = applyText(canvas, text)

View file

@ -50,9 +50,7 @@ module.exports = class idubbbzpaintCommand extends Command {
const ctx = canvas.getContext('2d')
const background = await loadImage(image);
ctx.drawImage(background, 140, 30, 400, 400);
const { body: buffer } = await superagent.get('https://image.noelshack.com/fichiers/2018/41/7/1539533685-untitled.png').catch(error => {
message.say('an error as occured. please try again.')
});
const { body: buffer } = await superagent.get('https://image.noelshack.com/fichiers/2018/41/7/1539533685-untitled.png');
const bg = await loadImage(buffer);
ctx.drawImage(bg, 0, 0, canvas.width, canvas.height);
ctx.font = applyText(canvas, text)

View file

@ -26,9 +26,7 @@ module.exports = class likeCommand extends Command {
const ctx = canvas.getContext('2d')
const background = await loadImage(image);
ctx.drawImage(background, 40, 0, 300, 255);
const { body: buffer } = await superagent.get('https://image.noelshack.com/fichiers/2018/41/7/1539547403-untitled.png').catch(error => {
message.say('an error as occured. please try again.')
});
const { body: buffer } = await superagent.get('https://image.noelshack.com/fichiers/2018/41/7/1539547403-untitled.png');
const bg = await loadImage(buffer);
ctx.drawImage(bg, 0, 0, canvas.width, canvas.height);

View file

@ -24,9 +24,7 @@ module.exports = class uglyCommand extends Command {
const canvas = createCanvas(323, 400)
const ctx = canvas.getContext('2d')
const background = await loadImage('https://image.noelshack.com/fichiers/2018/42/1/1539598678-untitled.png').catch(error => {
message.say('an error as occured. please try again.')
});
const background = await loadImage('https://image.noelshack.com/fichiers/2018/42/1/1539598678-untitled.png');
ctx.drawImage(background, 0, 0, canvas.width, canvas.height);
const { body: buffer } = await superagent.get(image);
const bg = await loadImage(buffer);