mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-10 19:04:42 +02:00
Whoops
This commit is contained in:
@@ -31,11 +31,11 @@ module.exports = class BeLikeBillCommand extends Command {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
run(msg, { name }) {
|
async run(msg, { name }) {
|
||||||
try {
|
try {
|
||||||
const canvas = createCanvas(800, 420);
|
const canvas = createCanvas(800, 420);
|
||||||
const ctx = canvas.getContext('2d');
|
const ctx = canvas.getContext('2d');
|
||||||
const base = loadImage(path.join(__dirname, '..', '..', 'assets', 'images', 'be-like-bill.png'));
|
const base = await loadImage(path.join(__dirname, '..', '..', 'assets', 'images', 'be-like-bill.png'));
|
||||||
ctx.drawImage(base, 0, 0);
|
ctx.drawImage(base, 0, 0);
|
||||||
ctx.font = '23px Noto';
|
ctx.font = '23px Noto';
|
||||||
const text = stripIndents`
|
const text = stripIndents`
|
||||||
|
|||||||
Reference in New Issue
Block a user