From 0b274f29d298834a17fe44d702f7408a0cf7b431 Mon Sep 17 00:00:00 2001 From: Techbot121 Date: Sat, 4 Jan 2025 18:25:40 +0100 Subject: [PATCH] fix some missed getService calls --- app/services/discord/modules/shitposting.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/services/discord/modules/shitposting.ts b/app/services/discord/modules/shitposting.ts index ffd1aa9..b09f521 100644 --- a/app/services/discord/modules/shitposting.ts +++ b/app/services/discord/modules/shitposting.ts @@ -99,7 +99,7 @@ export const Shat = async (options?: { return shat ? { content: shat } : undefined; } else { - const images = globalThis.MetaConcord.container.getService("Motd")?.images; + const images = (await globalThis.MetaConcord.container.getService("Motd")).images; let word = options?.msg && !options.msg.startsWith("http") ? getWord(options.msg) : undefined; @@ -112,9 +112,9 @@ export const Shat = async (options?: { ? { files: [{ attachment: result, description: imgur.title }] } : undefined; } else { - const res: AxiosResponse = await globalThis.MetaConcord.container - .getService("Tenor") - ?.search(word, 4); + const res: AxiosResponse = await ( + await globalThis.MetaConcord.container.getService("Tenor") + ).search(word, 4); if (!res || res.data.results.length === 0) return { content: await markov?.generate(undefined, DefaultMarkovConfig),