reverted changes
This commit is contained in:
parent
177d305a2f
commit
2afdfeefae
6 changed files with 6 additions and 18 deletions
|
@ -26,9 +26,7 @@ module.exports = class godCommand 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, 20, 80, 275, 250);
|
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 => {
|
const { body: buffer } = await superagent.get('https://image.noelshack.com/fichiers/2018/42/1/1539555260-untitled.png');
|
||||||
message.say('an error as occured. please try again.')
|
|
||||||
});
|
|
||||||
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);
|
||||||
|
|
||||||
|
|
|
@ -24,9 +24,7 @@ module.exports = class humanCommand extends Command {
|
||||||
|
|
||||||
const canvas = createCanvas(578, 400)
|
const canvas = createCanvas(578, 400)
|
||||||
const ctx = canvas.getContext('2d')
|
const ctx = canvas.getContext('2d')
|
||||||
const background = await loadImage('https://image.noelshack.com/fichiers/2018/42/1/1539594726-untitled.png').catch(error => {
|
const background = await loadImage('https://image.noelshack.com/fichiers/2018/42/1/1539594726-untitled.png');
|
||||||
message.say('an error as occured. please try again.')
|
|
||||||
});
|
|
||||||
ctx.drawImage(background, 0, 0, canvas.width, canvas.height);
|
ctx.drawImage(background, 0, 0, canvas.width, canvas.height);
|
||||||
const { body: buffer } = await superagent.get(image);
|
const { body: buffer } = await superagent.get(image);
|
||||||
const bg = await loadImage(buffer);
|
const bg = await loadImage(buffer);
|
||||||
|
|
|
@ -50,9 +50,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, 620, 100, 200, 200);
|
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 => {
|
const { body: buffer } = await superagent.get('https://image.noelshack.com/fichiers/2018/41/7/1539510207-untitled.png');
|
||||||
message.say('an error as occured. please try again.')
|
|
||||||
});
|
|
||||||
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);
|
||||||
ctx.font = applyText(canvas, text)
|
ctx.font = applyText(canvas, text)
|
||||||
|
|
|
@ -50,9 +50,7 @@ module.exports = class idubbbzpaintCommand 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/1539533685-untitled.png').catch(error => {
|
const { body: buffer } = await superagent.get('https://image.noelshack.com/fichiers/2018/41/7/1539533685-untitled.png');
|
||||||
message.say('an error as occured. please try again.')
|
|
||||||
});
|
|
||||||
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);
|
||||||
ctx.font = applyText(canvas, text)
|
ctx.font = applyText(canvas, text)
|
||||||
|
|
|
@ -26,9 +26,7 @@ module.exports = class likeCommand 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, 40, 0, 300, 255);
|
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 => {
|
const { body: buffer } = await superagent.get('https://image.noelshack.com/fichiers/2018/41/7/1539547403-untitled.png');
|
||||||
message.say('an error as occured. please try again.')
|
|
||||||
});
|
|
||||||
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);
|
||||||
|
|
||||||
|
|
|
@ -24,9 +24,7 @@ module.exports = class uglyCommand extends Command {
|
||||||
|
|
||||||
const canvas = createCanvas(323, 400)
|
const canvas = createCanvas(323, 400)
|
||||||
const ctx = canvas.getContext('2d')
|
const ctx = canvas.getContext('2d')
|
||||||
const background = await loadImage('https://image.noelshack.com/fichiers/2018/42/1/1539598678-untitled.png').catch(error => {
|
const background = await loadImage('https://image.noelshack.com/fichiers/2018/42/1/1539598678-untitled.png');
|
||||||
message.say('an error as occured. please try again.')
|
|
||||||
});
|
|
||||||
ctx.drawImage(background, 0, 0, canvas.width, canvas.height);
|
ctx.drawImage(background, 0, 0, canvas.width, canvas.height);
|
||||||
const { body: buffer } = await superagent.get(image);
|
const { body: buffer } = await superagent.get(image);
|
||||||
const bg = await loadImage(buffer);
|
const bg = await loadImage(buffer);
|
||||||
|
|
Loading…
Reference in a new issue