mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-17 21:40:51 +02:00
Meow
This commit is contained in:
@@ -3,6 +3,7 @@ const Canvas = require('canvas');
|
|||||||
const request = require('superagent');
|
const request = require('superagent');
|
||||||
const moment = require('moment');
|
const moment = require('moment');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
const { version } = require('../../package');
|
||||||
|
|
||||||
module.exports = class CardCommand extends Command {
|
module.exports = class CardCommand extends Command {
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
@@ -52,13 +53,14 @@ module.exports = class CardCommand extends Command {
|
|||||||
ctx.drawImage(base, 0, 0);
|
ctx.drawImage(base, 0, 0);
|
||||||
ctx.font = '18px Open Sans';
|
ctx.font = '18px Open Sans';
|
||||||
ctx.fillStyle = 'black';
|
ctx.fillStyle = 'black';
|
||||||
ctx.fillText(member.displayName, 30, 67);
|
ctx.fillText(member.displayName, 30, 63);
|
||||||
ctx.fillText('Discord Join Date:', 148, 400);
|
ctx.fillText('Discord Join Date:', 148, 400);
|
||||||
ctx.fillText(moment(member.user.createdTimestamp).format('MMMM Do YYYY'), 148, 420);
|
ctx.fillText(moment(member.user.createdTimestamp).format('MMMM Do YYYY'), 148, 420);
|
||||||
ctx.fillText('Server Join Date:', 148, 457);
|
ctx.fillText('Server Join Date:', 148, 457);
|
||||||
ctx.fillText(moment(member.joinedTimestamp).format('MMMM Do YYYY'), 148, 477);
|
ctx.fillText(moment(member.joinedTimestamp).format('MMMM Do YYYY'), 148, 477);
|
||||||
ctx.fillText(rarity, 73, 410);
|
ctx.fillText(rarity, 73, 411);
|
||||||
ctx.fillText(cardID, 60, 457);
|
ctx.fillText(cardID, 60, 457);
|
||||||
|
ctx.fillText(version.split('.')[0], 67, 503);
|
||||||
ctx.font = '14px Open Sans';
|
ctx.font = '14px Open Sans';
|
||||||
ctx.fillText(member.id, 30, 355);
|
ctx.fillText(member.id, 30, 355);
|
||||||
ctx.fillText(`#${member.user.discriminator}`, 313, 355);
|
ctx.fillText(`#${member.user.discriminator}`, 313, 355);
|
||||||
|
|||||||
Reference in New Issue
Block a user