mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-10 19:04:42 +02:00
Classic gravestone and activity statuses from Xiao v1
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 368 KiB After Width: | Height: | Size: 234 KiB |
@@ -30,5 +30,21 @@
|
||||
{
|
||||
"text": "with Amber",
|
||||
"type": "PLAYING"
|
||||
},
|
||||
{
|
||||
"text": "with a cardboard box",
|
||||
"type": "PLAYING"
|
||||
},
|
||||
{
|
||||
"text": "in the fridge",
|
||||
"type": "PLAYING"
|
||||
},
|
||||
{
|
||||
"text": "with a knife",
|
||||
"type": "PLAYING"
|
||||
},
|
||||
{
|
||||
"text": "with a murderous cow",
|
||||
"type": "PLAYING"
|
||||
}
|
||||
]
|
||||
|
||||
@@ -37,8 +37,8 @@ module.exports = class RipCommand extends Command {
|
||||
const canvas = createCanvas(base.width, base.height);
|
||||
const ctx = canvas.getContext('2d');
|
||||
ctx.drawImage(base, 0, 0);
|
||||
ctx.drawImage(avatar, 158, 51, 200, 200);
|
||||
greyscale(ctx, 158, 51, 200, 200);
|
||||
ctx.drawImage(avatar, 59, 68, 200, 200);
|
||||
greyscale(ctx, 59, 68, 200, 200);
|
||||
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'rip.png' }] });
|
||||
} catch (err) {
|
||||
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "88.2.1",
|
||||
"version": "88.2.2",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user