Files
infrastructure/discord-bot/client/src/models.ts
2024-12-30 11:42:12 -07:00

27 lines
520 B
TypeScript

export enum BotStatus {
PLAYING = "Playing",
Idle = "Idle",
}
export interface PlaybackInfoData {
file_name: string;
current_position: number;
duration: number;
}
export interface SongQueue {
song_file_list: {
filename: string;
duration: number;
}[];
position: number;
}
export interface BotResponse {
message_type: "PLAYBACK_INFORMATION" | "ERROR" | "MESSAGE";
status: BotStatus;
error?: string;
message?: string;
playback_information?: PlaybackInfoData;
song_queue?: SongQueue;
}