Skip to content

Commit

Permalink
add things
Browse files Browse the repository at this point in the history
  • Loading branch information
leo-210 committed Dec 13, 2021
1 parent cb65371 commit f712dca
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"prefer-const": "error",
"no-var": "error",
"prettier/prettier": "error",
"eqeqeq": "error"
"eqeqeq": "error",
"require-await": "warn"
}
}
2 changes: 1 addition & 1 deletion src/commands/ban.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ module.exports = {
ephemeral: true,
});
}
interaction.reply({
await interaction.reply({
content:
"Voulez-vous bannir " +
user.user.username +
Expand Down
2 changes: 1 addition & 1 deletion src/commands/kick.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ module.exports = {
ephemeral: true,
});
}
interaction.reply({
await interaction.reply({
content:
"Voulez-vous expulser " +
user.user.username +
Expand Down
2 changes: 1 addition & 1 deletion src/commands/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ module.exports = {
interaction.user.discriminator,
interaction.user.displayAvatarURL
);
return interaction.reply({ embeds: [reply] });
return await interaction.reply({ embeds: [reply] });
},
};
2 changes: 1 addition & 1 deletion src/commands/user-info.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ module.exports = {
interaction.user.discriminator,
interaction.user.displayAvatarURL
);
return interaction.reply({ embeds: [reply] });
return await interaction.reply({ embeds: [reply] });
},
};
4 changes: 2 additions & 2 deletions src/events/ready.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = {

// Repeat every 20 minutes
cron.schedule("*/20 * * * *", async () => {
updateSubCount(client);
await updateSubCount(client);
});

const setPresence = function (number) {
Expand All @@ -46,7 +46,7 @@ module.exports = {
}, 10000);
}, 10000);

setInterval(async () => {
setInterval(() => {
setPresence(0);
setTimeout(function () {
setPresence(1);
Expand Down

0 comments on commit f712dca

Please sign in to comment.