mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-17 00:07:36 +02:00
Draw on both panels in worthless
This commit is contained in:
@@ -47,6 +47,9 @@ module.exports = class WorthlessCommand extends Command {
|
|||||||
ctx.rotate(6 * (Math.PI / 180));
|
ctx.rotate(6 * (Math.PI / 180));
|
||||||
ctx.drawImage(avatar, 496, 183, 400, 400);
|
ctx.drawImage(avatar, 496, 183, 400, 400);
|
||||||
ctx.rotate(-6 * (Math.PI / 180));
|
ctx.rotate(-6 * (Math.PI / 180));
|
||||||
|
ctx.rotate(160 * (Math.PI / 180));
|
||||||
|
ctx.drawImage(avatar, 942, 1148, 75, 75);
|
||||||
|
ctx.rotate(-160 * (Math.PI / 180));
|
||||||
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'worthless.png' }] });
|
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'worthless.png' }] });
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
|
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiao",
|
"name": "xiao",
|
||||||
"version": "112.2.0",
|
"version": "112.2.1",
|
||||||
"description": "Your personal server companion.",
|
"description": "Your personal server companion.",
|
||||||
"main": "Xiao.js",
|
"main": "Xiao.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user