mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 06:42:50 +02:00
Test
This commit is contained in:
@@ -74,7 +74,7 @@ module.exports = class PokedexBoxSpriteCommand extends Command {
|
|||||||
ctx.imageSmoothingEnabled = false;
|
ctx.imageSmoothingEnabled = false;
|
||||||
const ratio = 250 / 40;
|
const ratio = 250 / 40;
|
||||||
const height = 30 * ratio;
|
const height = 30 * ratio;
|
||||||
ctx.drawImage(this.client.pokemon.sprites, x, y, 40, 30, 0, 0, 250, height);
|
ctx.drawImage(this.client.pokemon.sprites, x, y, 40, 30, 0, 0, 40, 30);
|
||||||
cropToContent(ctx, canvas, canvas.width, canvas.height);
|
cropToContent(ctx, canvas, canvas.width, canvas.height);
|
||||||
return msg.say(`#${pokemon.displayID} - ${pokemon.name}`, {
|
return msg.say(`#${pokemon.displayID} - ${pokemon.name}`, {
|
||||||
files: [{
|
files: [{
|
||||||
|
|||||||
Reference in New Issue
Block a user