We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
My code is:
const { GiveawaysManager } = require('discord-giveaways'); const CustomGiveawayManager = class extends GiveawaysManager { async getAllGiveaways() { console.log("getAllGiveaways".bgGreen) return await client.giveawayDB.all(true); } async saveGiveaway(messageId, giveawayData) { await client.giveawayDB.set(messageId, giveawayData); return true; } async editGiveaway(messageId, giveawayData) { await client.giveawayDB.set(messageId, giveawayData); return true; } async deleteGiveaway(messageId) { await client.giveawayDB.delete(messageId); return true; } async refreshStorage() { console.log("refreshStorage".bgGreen) return client.cluster.broadcastEval(`this.giveawaysManager.getAllGiveaways()`); } }; const manager = new CustomGiveawayManager(client, { default: { botsCanWin: false, embedColor: ee.color, embedColorEnd: ee.wrongcolor, reaction: '🎉' } }); client.giveawaysManager = manager;
If i restart the bot after starting a giveaway getAllGiveaways is logged but never refreshStorage
getAllGiveaways
refreshStorage
After the restart, it's not ending the giveaway, however, if the bot stays online after starting the giveaway it will end it...
The text was updated successfully, but these errors were encountered:
If I'm getting the db data with fetching directly from the mongodb (true) i receive this
but as you see it should have ended already
Sorry, something went wrong.
refreshStorage isn't actually needed "anymore", you can remove it.
But it still doesnt "end"
No branches or pull requests
My code is:
If i restart the bot after starting a giveaway
getAllGiveaways
is logged but neverrefreshStorage
The text was updated successfully, but these errors were encountered: