1
0
Fork 0
mirror of https://github.com/1disk/edp445.git synced 2024-08-14 22:47:02 +00:00
edp445/node_modules/canvacord/index.js
2022-12-03 05:44:44 +00:00

50 lines
No EOL
1.5 KiB
JavaScript

// Created and maintained by DevAndromeda
const Canvacord = require("./src/Canvacord");
// load default fonts
try {
Canvacord.registerFonts();
} catch(e) {}
/**
* @param {stirng} moduleName module name
*/
function load(moduleName) {
try {
return require(moduleName);
} catch(e) {
return null;
}
}
module.exports = {
Canvas: Canvacord,
Canvacord,
ConvolutionMatrix: Canvacord.CONVOLUTION_MATRIX,
Rank: require("./src/Rank"),
Spotify: require("./src/Spotify"),
Welcomer: require("./src/Welcomer"),
Leaver: require("./src/Leaver"),
Greeting: require("./src/base/GreetingsCard"),
CaptchaGen: load("captcha-canvas") ? load("captcha-canvas").CaptchaGenerator : null,
FortniteShop: load("discord-canvas") ? load("discord-canvas").FortniteShop : null,
FortniteStats: load("discord-canvas") ? load("discord-canvas").FortniteStats : null,
Plugins: require("./src/Plugins"),
Util: require("./src/Util"),
Assets: require("./src/Assets"),
// MiScellaneous eXtensions
MSX: {
Brightness: require("./libs/Brightness"),
Convolute: require("./libs/Convolute"),
Darkness: require("./libs/Darkness"),
Greyscale: require("./libs/Greyscale"),
Invert: require("./libs/Invert"),
Sepia: require("./libs/Sepia"),
Threshold: require("./libs/Threshold"),
Trigger: require("./libs/Trigger")
},
write: Canvacord.write,
author: "DevAndromeda",
version: require("./package.json").version
};