-
Notifications
You must be signed in to change notification settings - Fork 8
/
index.js
51 lines (46 loc) · 2.05 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
Object.defineProperty(exports, "__esModule", { value: true });
const { registerFont } = require("canvas");
const fetch = (...args) => import('node-fetch').then(({ default: fetch }) => fetch(...args));
const path = require("path");
const { GlobalFonts } = require('@napi-rs/canvas');
GlobalFonts.registerFromPath(`${__dirname}/assets/fonts/Poppins/Poppins-Regular.ttf`,"Poppins")
GlobalFonts.registerFromPath(`${__dirname}/assets/fonts/Poppins/Poppins-Bold.ttf`,"Poppins Bold")
GlobalFonts.registerFromPath(`${__dirname}/assets/fonts/Manrope/Manrope-Regular.ttf`,"Manrope")
GlobalFonts.registerFromPath(`${__dirname}/assets/fonts/Manrope/Manrope-Bold.ttf`,"Manrope Bold")
GlobalFonts.registerFromPath(`${__dirname}/assets/fonts/Others/AbyssinicaSIL-Regular.ttf`,"Abyss")
GlobalFonts.registerFromPath(`${__dirname}/assets/fonts/Others/ChirpRegular.ttf`,"Chirp")
const { emitWarning } = process;
process.emitWarning = (warning, ...args) => {
if (args[0] === 'ExperimentalWarning') { return; }
if (args[0] && typeof args[0] === 'object' && args[0].type === 'ExperimentalWarning') { return; }
return emitWarning(warning, ...args);
};
module.exports = {
Image: {
affect: require("./src/affect"),
batslap: require("./src/batslap"),
beautiful: require("./src/beautiful"),
darkness: require("./src/darkness"),
delete: require("./src/delete"),
gay: require("./src/gay"),
greyscale: require("./src/greyscale"),
invert: require("./src/invert"),
kiss: require("./src/kiss"),
},
oldRank: require("./src/oldrank"),
Rank: require("./src/rank"),
oldSpotify: require("./src/oldspotify"),
Spotify: require("./src/spotify"),
Util: require("./plugins/Util"),
WelcomeLeave: require("./src/welcome-leave"),
Ship: require("./src/ship"),
Top: require("./src/top"),
LevelUp: require("./src/level-up"),
Profile: require("./src/profile"),
Security: require("./src/security"),
Captcha: require("./src/captcha"),
Tweet: require("./src/tweet"),
Instagram: require("./src/instagram"),
author: "Bes-js",
version: require("./package.json").version
};