mirror of
https://github.com/yusufipk/YTChatHub.git
synced 2026-09-12 03:16:10 +00:00
initializing the files and the memory bank.
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
export type ContinuationState = {
|
||||
token: string | null;
|
||||
apiKey?: string;
|
||||
};
|
||||
|
||||
export async function bootstrapInnertube(): Promise<ContinuationState> {
|
||||
// TODO: fetch initial visitor data and live chat continuation token via youtubei.js
|
||||
return { token: null };
|
||||
}
|
||||
|
||||
export async function fetchChatBatch(state: ContinuationState) {
|
||||
// TODO: use youtubei.js to fetch messages with the provided continuation token
|
||||
// return both normalized messages and the next continuation token
|
||||
return {
|
||||
messages: [],
|
||||
next: state.token
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user