mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 15:07:42 +02:00
Fix
This commit is contained in:
@@ -56,9 +56,9 @@ module.exports = class WildPokemonCommand extends Command {
|
||||
const { x, y, width, height } = centerImagePart(data, 100, 100, 227, 11);
|
||||
pixelize(ctx, canvas, data, 0.30, x, y, width, height);
|
||||
greyscale(ctx, x, y, width, height);
|
||||
ctx.letterSpacing = '5px';
|
||||
ctx.letterSpacing = '6px';
|
||||
ctx.textBaseline = 'top';
|
||||
ctx.font = this.client.fonts.get('PokemonGb.ttf').toCanvasString(16);
|
||||
ctx.font = this.client.fonts.get('PokemonGb.ttf').toCanvasString(18);
|
||||
ctx.fillText(name.toUpperCase(), 110, 203, 215);
|
||||
return msg.say({ files: [{ attachment: canvas.toBuffer('image/png'), name: 'wild-pokemon.png' }] });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user