0
Fork 0
mirror of https://codeberg.org/SafeTwitch/safetwitch-backend.git synced 2025-02-16 00:28:01 -05:00
safetwitch-backend/types/scraping/Chat.ts
2023-03-27 08:33:51 -04:00

18 lines
391 B
TypeScript

export interface TwitchChatOptions {
login: {
username: string,
password: string
},
channels: string[]
}
export const MessageTypes = ['PRIVMSG', 'WHISPER']
export type MessageType = typeof MessageTypes[number];
export interface Metadata {
username: string
messageType: MessageType
channel: string
message: string
tags: { [k:string]:any }
}