mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix bob-ross
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 554 KiB After Width: | Height: | Size: 839 KiB |
@@ -43,9 +43,7 @@ module.exports = class BobRossCommand extends Command {
|
||||
const ctx = canvas.getContext('2d');
|
||||
ctx.fillStyle = 'white';
|
||||
ctx.fillRect(0, 0, base.width, base.height);
|
||||
ctx.rotate(3 * (Math.PI / 180));
|
||||
ctx.drawImage(avatar, 30, 19, 430, 430);
|
||||
ctx.rotate(-3 * (Math.PI / 180));
|
||||
ctx.drawImage(base, 0, 0);
|
||||
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'bob-ross.png' }] });
|
||||
} catch (err) {
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "105.0.0",
|
||||
"version": "105.0.1",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user