Init some global variables
This commit is contained in:
parent
cfa6a55d39
commit
df722f8ffb
1 changed files with 4 additions and 0 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue