Skip to content

Commit

Permalink
Fixed typos in confirmation messages.
Browse files Browse the repository at this point in the history
- Modified setup-contest.js, setup-problem.js and stop.js
- Closes #67
  • Loading branch information
mit-27 committed Jul 11, 2023
1 parent c35c6cc commit 1ee8175
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions commands/setup-contest.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ module.exports = {
await embedMessage(
interaction,
"PERMISSIONS ERROR",
"The bot needs to have **Send Messages** premission in the selected channel."
"The bot needs to have **Send Messages** permission in the selected channel."
);
return;
}
Expand All @@ -72,7 +72,7 @@ module.exports = {
await embedMessage(
interaction,
"LOWER ROLE ERROR",
`**${role.name}** role need to be present below the bot role, inorder for the bot to manage it. Open server settings, go to roles, drag the bot role above the ${role.name} role, and run this command again.`
`**${role.name}** role need to be present below the bot role, in order for the bot to manage it. Open server settings, go to roles, drag the bot role above the ${role.name} role, and run this command again.`
);
return;
}
Expand Down Expand Up @@ -106,7 +106,7 @@ module.exports = {
await embedMessage(
interaction,
"SERVICE ACTIVATED",
"Upcoming contest notifications service has been actived for your server.",
"Upcoming contest notifications service has been activated for your server.",
false
);
await interaction.followUp({ embeds: [embed], components: [row] });
Expand Down
6 changes: 3 additions & 3 deletions commands/setup-problem.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ module.exports = {
await interaction.deferReply({ ephemeral: true });

// Only the admin can use this command
if (!(interaction.member.permissions.has(PermissionFlagsBits.Administrator) || interaction.member.id==='415490428721168384')) {
await embedMessage(interaction,'PERMISSIONS ERROR', 'You need to be an **Administrator** to run this command.')
if (!(interaction.member.permissions.has(PermissionFlagsBits.Administrator) || interaction.member.id === '415490428721168384')) {
await embedMessage(interaction, 'PERMISSIONS ERROR', 'You need to be an **Administrator** to run this command.')
return;
}

Expand All @@ -30,7 +30,7 @@ module.exports = {

// Save server and channel data to db and send a confirmation message
await interaction.client.database.saveProblemChannel(interaction.guildId, channel.id);
await embedMessage(interaction, 'SERVICE ACTIVATED', 'Problem of the day service has been actived for you server!', false);
await embedMessage(interaction, 'SERVICE ACTIVATED', 'Problem of the day service has been activated for you server!', false);
await interaction.editReply({ embeds: [embed] });
},
};
4 changes: 2 additions & 2 deletions commands/stop.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module.exports = {
await interaction.deferReply({ ephemeral: true });

// Only the admin can use this command
if (!(interaction.member.permissions.has(PermissionFlagsBits.Administrator) || interaction.member.id==='415490428721168384')) {
if (!(interaction.member.permissions.has(PermissionFlagsBits.Administrator) || interaction.member.id === '415490428721168384')) {
await embedMessage(interaction, 'PERMISSIONS ERROR', 'You need to be an **Administrator** to run this command!')
return;
}
Expand All @@ -39,7 +39,7 @@ module.exports = {
if (!(await interaction.client.database.deleteProblemServer(interaction.guildId)))
await embedMessage(interaction, 'INACTIVE SERVICE', 'Problem of the day service was not active for you server.');
else
await embedMessage(interaction, 'SERVICE STOPPED', 'Problem of the day service stopped. Your server will no longer recieve daily problems.',false);
await embedMessage(interaction, 'SERVICE STOPPED', 'Problem of the day service stopped. Your server will no longer receive daily problems.', false);
}
},
};

0 comments on commit 1ee8175

Please sign in to comment.