Skip to content

Commit

Permalink
Improved logging to use actual commands
Browse files Browse the repository at this point in the history
  • Loading branch information
SaltyQuetzals committed May 1, 2024
1 parent a7e870a commit 5d605f1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/commands/subcommands/season/end.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default {

if (currentSeason === null) {
await interaction.reply({
content: "There's no ongoing RMFP season to end. Have you run `/rmfp start season`?",
content: "There's no ongoing RMFP season to end. Have you run `/rmfp season start`?",
ephemeral: true,
});
return;
Expand Down
4 changes: 2 additions & 2 deletions src/commands/subcommands/season/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { prisma } from '../../../common/prisma.js';
import type { SubCommand } from '../index.js';

/**
* Begins a new RMFP season. Informs the user if one is ongoing that they must invoke `/rmfp end_season` first.
* Begins a new RMFP season. Informs the user if one is ongoing that they must invoke `/rmfp season end` first.
*/
export default {
subCommandOption: (subCommand) => subCommand.setName('start').setDescription('Starts a new season of RMFP!'),
Expand All @@ -24,7 +24,7 @@ export default {
// We can't have two seasons of RMFP going at once, the admin must end the current season first.
await interaction.reply({
content:
"A new season of RMFP can't be started until the current season has been ended! Use `/rmfp endSeason` to end the current season.",
"A new season of RMFP can't be started until the current season has been ended! Use `/rmfp season end` to end the current season.",
ephemeral: true,
});
return;
Expand Down
2 changes: 1 addition & 1 deletion src/commands/subcommands/week/end.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export default {
if (currentSeason === null) {
await interaction.reply({
content:
"There's no RMFP season ongoing. You need to start a season (`/rmfp start season`) before running this command.",
"There's no RMFP season ongoing. You need to start a season (`/rmfp season start`) before running this command.",
ephemeral: true,
});
return;
Expand Down
2 changes: 1 addition & 1 deletion src/commands/subcommands/week/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default {
if (currentSeason === null) {
await interaction.reply({
content:
"There's no RMFP season ongoing. You need to start a season (`/rmfp start season`) before running this command.",
"There's no RMFP season ongoing. You need to start a season (`/rmfp season start`) before running this command.",
ephemeral: true,
});
return;
Expand Down

0 comments on commit 5d605f1

Please sign in to comment.