diff --git a/plugins/Commands/src/commands/facts.ts b/plugins/Commands/src/commands/facts.ts index 25f283f..1d5bf1a 100644 --- a/plugins/Commands/src/commands/facts.ts +++ b/plugins/Commands/src/commands/facts.ts @@ -1,5 +1,6 @@ import { findByProps } from "@vendetta/metro"; import { storage } from "@vendetta/plugin"; +import { catFact, dogFact, uselessFact } from "../utils/api"; const MessageActions = findByProps("sendMessage"); @@ -92,16 +93,3 @@ export const uselessFactCommand = { } }, }; - -// Mock API functions since we don't have the actual implementations -async function catFact(): Promise<{ text: string; source?: string }> { - return { text: "Cats can jump up to 6 times their height.", source: "catfacts.com" }; -} - -async function dogFact(): Promise<{ text: string; source?: string }> { - return { text: "Dogs have an exceptional sense of smell.", source: "dogfacts.com" }; -} - -async function uselessFact(): Promise<{ text: string; source?: string }> { - return { text: "Bananas are berries, but strawberries aren't.", source: "uselessfacts.com" }; -} diff --git a/plugins/Commands/src/commands/petpet.ts b/plugins/Commands/src/commands/petpet.ts index 2ae231f..5fc33c7 100644 --- a/plugins/Commands/src/commands/petpet.ts +++ b/plugins/Commands/src/commands/petpet.ts @@ -1,4 +1,5 @@ import { findByProps, findByStoreName } from "@vendetta/metro"; +import { getPetPetData } from "../utils/api"; const UserStore = findByStoreName("UserStore"); const MessageActions = findByProps("sendMessage"); @@ -42,9 +43,3 @@ export const petPetCommand = { inputType: 1, type: 1, }; - -// Mock function since we don't have the actual API -async function getPetPetData(image: string): Promise<{ url: string }> { - // This would normally call an API to generate petpet gif - return { url: `https://example.com/petpet.gif?image=${image}` }; -}