Skip to content

Commit

Permalink
fix some missed getService calls
Browse files Browse the repository at this point in the history
  • Loading branch information
Techbot121 authored and Meta Construct committed Jan 4, 2025
1 parent 3ce4133 commit 0b274f2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/services/discord/modules/shitposting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -112,9 +112,9 @@ export const Shat = async (options?: {
? { files: [{ attachment: result, description: imgur.title }] }
: undefined;
} else {
const res: AxiosResponse<TenorResponse> = await globalThis.MetaConcord.container
.getService("Tenor")
?.search(word, 4);
const res: AxiosResponse<TenorResponse> = await (
await globalThis.MetaConcord.container.getService("Tenor")
).search(word, 4);
if (!res || res.data.results.length === 0)
return {
content: await markov?.generate(undefined, DefaultMarkovConfig),
Expand Down

0 comments on commit 0b274f2

Please sign in to comment.