MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / getRandomEntry

Function getRandomEntry

eat/eat.ts:116–120  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

114}
115
116function getRandomEntry(): EntryConfig {
117 const values = Object.values(config);
118 const randomIndex = Math.floor(Math.random() * values.length);
119 return values[randomIndex];
120}
121
122async function getAssetBuffer(url: string): Promise<Buffer> {
123 const absoluteUrl = resolveResourceUrl(url);

Callers 1

fnFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected