Change
This commit is contained in:
parent
db76017e7a
commit
2d9e1e2ba1
2 changed files with 2 additions and 19 deletions
|
|
@ -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" };
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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}` };
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue