-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
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
Possible fix for buttons #439
base: main
Are you sure you want to change the base?
Conversation
@@ -293,7 +293,7 @@ client.once("ready", async () => { | |||
} | |||
}, 2000) | |||
|
|||
setInterval(async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please don't leave junk code comments
@@ -79,7 +79,7 @@ fs.readdir("./slashCommands/", (err, files) => { | |||
}) | |||
}) | |||
|
|||
const eventFiles = fs.readdirSync("./events").filter((file) => file.endsWith(".js")) | |||
const eventFiles = fs.readdirSync(`${__dirname}/events`).filter((file) => file.endsWith(".js")) | |||
for (const file of eventFiles) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
foreach
@@ -11,7 +11,7 @@ module.exports = (client) => { | |||
console.log(interaction.customId) | |||
let stat = await stats.find() | |||
stat = stat[0] | |||
let gam = stat.games.find((game) => Object.keys(game) == db.get("game.id")) | |||
let gam = stat?.games.find((game) => Object.keys(game) == db.get("game.id")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what if games property itself is null/undefined?
No description provided.