mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2025-06-17 01:16:01 +00:00
Temporary solution
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
import Discord from "discord.js";
|
||||
import fetch from "node-fetch";
|
||||
const _importDynamic = new Function('modulePath', 'return import(modulePath)');
|
||||
const fetch = (...args) => _importDynamic('node-fetch').then(({default: fetch}) => fetch(...args));
|
||||
|
||||
module.exports = {
|
||||
name: 'maintenance',
|
||||
|
@ -1,5 +1,6 @@
|
||||
import Datastore from "../datastore.js";
|
||||
const fetch = (...args) => import('node-fetch').then(({default: fetch}) => fetch(...args));
|
||||
const _importDynamic = new Function('modulePath', 'return import(modulePath)');
|
||||
const fetch = (...args) => _importDynamic('node-fetch').then(({default: fetch}) => fetch(...args));
|
||||
|
||||
module.exports = {
|
||||
name: 'ready',
|
||||
|
Reference in New Issue
Block a user