uoohh uhh im so fukn retarded durr

This commit is contained in:
2026-02-14 00:09:49 +00:00
parent d30673e24d
commit 34ecfdbb97
2 changed files with 18 additions and 11 deletions

View File

@ -41,6 +41,7 @@ const getRandomResultFromGCI = async (
}; };
const lmgcitfy = async (query: string): Promise<APIResult<string>> => { const lmgcitfy = async (query: string): Promise<APIResult<string>> => {
try {
if (!query) { if (!query) {
return { error: true, errorMessage: "You must provide a search query." }; return { error: true, errorMessage: "You must provide a search query." };
} }
@ -52,6 +53,12 @@ const lmgcitfy = async (query: string): Promise<APIResult<string>> => {
const redirectURL = `https://guncadindex.com/search?${searchParams}`; const redirectURL = `https://guncadindex.com/search?${searchParams}`;
return { error: false, payload: redirectURL }; return { error: false, payload: redirectURL };
} catch (error) {
if (error instanceof Error) {
console.error(error.message);
}
return { error: true, errorMessage: "Something went wrong." };
}
}; };
export { getRandomResultFromGCI, lmgcitfy }; export { getRandomResultFromGCI, lmgcitfy };

View File

@ -112,7 +112,7 @@ export default function Home() {
setTimeout(() => { setTimeout(() => {
buttonRef.current!.style.scale = `1`; buttonRef.current!.style.scale = `1`;
}, 2350); }, 1750);
setTimeout(() => { setTimeout(() => {
toaster.create({ toaster.create({