Kass507
Kass507
SIASapphire - Imagine a framework
Created by Kass507 on 6/7/2024 in #sapphire-support
Error [EMPTY_MODULE]: A compatible class export was not found.
functions.js
const { SapphireClient, container } = require('@sapphire/framework');
const { Canales } = require('./canales');

module.exports.FortniteEventos = {
async reloadNoticias() {
const languageOrder = ['en', 'es', 'es-419']
//rest code
}
}
const { SapphireClient, container } = require('@sapphire/framework');
const { Canales } = require('./canales');

module.exports.FortniteEventos = {
async reloadNoticias() {
const languageOrder = ['en', 'es', 'es-419']
//rest code
}
}
7 replies
SIASapphire - Imagine a framework
Created by Kass507 on 6/7/2024 in #sapphire-support
Error [EMPTY_MODULE]: A compatible class export was not found.
channels.js
module.exports.Canales = Object.freeze({
tienda: "123456789",
noticiasbr: "123456789"
})
module.exports.Canales = Object.freeze({
tienda: "123456789",
noticiasbr: "123456789"
})
7 replies
SIASapphire - Imagine a framework
Created by Kass507 on 6/7/2024 in #sapphire-support
Error [EMPTY_MODULE]: A compatible class export was not found.
index.js (extra):
const { Listener, Logger, container } = require('@sapphire/framework');
const sleep = require('util').promisify(setTimeout);
const schedule = require('node-schedule');
const {FortniteEventos } = require('./eventos');

class Fortnite extends Listener {
constructor(context, options = {}) {
super(context, {
...options,
event: 'ready', // Listen for the 'ready' event
});
}

async run(client) {
container.logger.info('Iniciando tareas de eventos...');
const cron = '*/1 * * * *';
const job = schedule.scheduleJob(cron, async function() {
container.logger.info('ejecutado a las: ' + new Date().toLocaleString());
job.cancel();
await FortniteEventos.reloadNoticias();
})
}
}

module.exports = {
Fortnite,
};
const { Listener, Logger, container } = require('@sapphire/framework');
const sleep = require('util').promisify(setTimeout);
const schedule = require('node-schedule');
const {FortniteEventos } = require('./eventos');

class Fortnite extends Listener {
constructor(context, options = {}) {
super(context, {
...options,
event: 'ready', // Listen for the 'ready' event
});
}

async run(client) {
container.logger.info('Iniciando tareas de eventos...');
const cron = '*/1 * * * *';
const job = schedule.scheduleJob(cron, async function() {
container.logger.info('ejecutado a las: ' + new Date().toLocaleString());
job.cancel();
await FortniteEventos.reloadNoticias();
})
}
}

module.exports = {
Fortnite,
};
7 replies