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