Init some global variables

This commit is contained in:
Supositware 2022-12-18 22:53:31 +01:00
parent cfa6a55d39
commit df722f8ffb

View file

@ -5,6 +5,10 @@ export default {
name: 'ready', name: 'ready',
once: true, once: true,
async execute(client) { async execute(client) {
// Init global variables.
global.ratelimit = {};
global.boards = {};
const ytdlpVersion = await new Promise((resolve, reject) => { const ytdlpVersion = await new Promise((resolve, reject) => {
exec('./bin/yt-dlp --version', (err, stdout, stderr) => { exec('./bin/yt-dlp --version', (err, stdout, stderr) => {
if (err) { if (err) {