You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
module.exports = {
config: {
name: "balance",
description: "Shows Your Aya profile",
usage: "balance",
cooldown: 20,
},
Permissions: ["SendMessages"],
owner: false,
run: async (client, message, args) => {
let user = await User.findOne({ username: message.author.username });
if (!user) {
message.reply(
"You are not registered in the database. Use the !register command to get started!"
);
return;
}
// Show a loading message with a GIF
const loadingMessage = await message.reply(
"https://upload-os-bbs.hoyolab.com/upload/2020/03/27/5789515/46aa55bc939a2c3632d2eec683184fec_2412966685494962307.gif"
);
the fonts dont work once they are deployed on the server which is heroku or techstar host
const Canvas = require("canvas");
const Discord = require("discord.js");
const User = require("./../../../schemas/currencySchema");
const { AttachmentBuilder } = require("discord.js");
const { registerFont } = require("canvas");
const weaponData = require("./../../../Wishjsons/weapons.json");
const characterData = require("./../../../Wishjsons/characters.json");
registerFont("BlockHead_bold.ttf", { family: "BlockHead" });
registerFont("Franchise-Free-Bold.ttf", { family: "Franchise Free" });
registerFont("MANGOLD.ttf", { family: "MANGOLD" });
module.exports = {
config: {
name: "balance",
description: "Shows Your Aya profile",
usage: "balance",
cooldown: 20,
},
Permissions: ["SendMessages"],
owner: false,
run: async (client, message, args) => {
let user = await User.findOne({ username: message.author.username });
if (!user) {
message.reply(
"You are not registered in the database. Use the !register command to get started!"
);
return;
}
// Show a loading message with a GIF
const loadingMessage = await message.reply(
"https://upload-os-bbs.hoyolab.com/upload/2020/03/27/5789515/46aa55bc939a2c3632d2eec683184fec_2412966685494962307.gif"
);
},
};
The text was updated successfully, but these errors were encountered: