From e0204f76cf5427eeb529d03fde988522923ecf2b Mon Sep 17 00:00:00 2001 From: Rory& Date: Mon, 13 Apr 2026 22:41:57 +0200 Subject: Make presence clear async, clean up temp session code --- src/api/util/utility/EmbedHandlers.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/api/util/utility') diff --git a/src/api/util/utility/EmbedHandlers.ts b/src/api/util/utility/EmbedHandlers.ts index 679424f3..25a33f06 100644 --- a/src/api/util/utility/EmbedHandlers.ts +++ b/src/api/util/utility/EmbedHandlers.ts @@ -16,7 +16,7 @@ along with this program. If not, see . */ -import { arrayDistinctBy, arrayGroupBy, Config, EmbedCache, emitEvent, Message, MessageUpdateEvent, normalizeUrl, OrmUtils } from "@spacebar/util"; +import { arrayDistinctBy, arrayGroupBy, Config, EmbedCache, emitEvent, Message, MessageUpdateEvent, normalizeUrl, OrmUtils, sleep } from "@spacebar/util"; import { Embed, EmbedImage, EmbedType } from "@spacebar/schemas"; import * as cheerio from "cheerio"; import crypto from "crypto"; @@ -572,10 +572,6 @@ export async function dropDuplicateCacheEntries(entries: EmbedCache[]): Promise< ); } -async function sleep(ms: number) { - return new Promise((resolve) => setTimeout(resolve, ms)); -} - // hack to make nodejs not die function getSlowdownFactor(off: number) { if (off < 10) return off; -- cgit 1.5.1