Skip to content

Commit

Permalink
fix(bot): event creation timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
shayypy committed Nov 24, 2024
1 parent 03c9f98 commit 49f4e42
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/bot/src/commands/calendar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import { colors } from "../util/colors";
import { storeComponents } from "../util/components";
import { getLeagueLogoUrl, getTeamEmoji } from "../util/emojis";
import { transformLocalizations, uni } from "../util/l10n";
import { getOffset } from "../util/time";
import { getOffset, sleep } from "../util/time";
import { leagueTeams } from "../ht/teams";
import { InteractionContext } from "../interactions";
import { getNow } from "../util/time";
Expand Down Expand Up @@ -454,9 +454,7 @@ export const addScheduleEventsCallback: ButtonCallback = async (ctx) => {
// We don't really care if this succeeds
}
}
// This can make it appear more consistent but ultimately
// it will take longer. Function > form?
// await sleep(5000);
await sleep(1500);
}

await ctx.followup.editOriginalMessage({
Expand Down

0 comments on commit 49f4e42

Please sign in to comment.