Skip to content

Commit

Permalink
style prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
berkingurcan committed Feb 21, 2025
1 parent 7160396 commit 29669d8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ Resets the Redis database.
npm run reset
```

## Commands *(Deprecated)*
## Commands _(Deprecated)_

It still can be run with ```npm run commandBot```but no we have buttons UI for smooth user experience.
It still can be run with `npm run commandBot`but no we have buttons UI for smooth user experience.

### /gptsurvey create

Expand Down
8 changes: 5 additions & 3 deletions src/adminUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -636,8 +636,8 @@ export const handleModals = async (interaction, client, redisClient) => {
channelId,
);
} else if (interaction.customId.startsWith("postRespondModal-")) {
await interaction.deferReply({ ephemeral: true });
await interaction.deferReply({ ephemeral: true });

const surveyName = interaction.customId.split("-").slice(1).join("-");
const channelId = interaction.fields.getTextInputValue("channelId");

Expand All @@ -649,7 +649,9 @@ export const handleModals = async (interaction, client, redisClient) => {
client,
);

await interaction.editReply("Done if there is no problem about the survey :)");
await interaction.editReply(
"Done if there is no problem about the survey :)",
);
} else if (interaction.customId.startsWith("viewPublicModal-")) {
const surveyName = interaction.customId.split("-").slice(1).join("-");
const channelId = interaction.fields.getTextInputValue("channelId");
Expand Down

0 comments on commit 29669d8

Please sign in to comment.