2023-06-18 23:19:20 -04:00
|
|
|
export interface TwitchChatOptions {
|
2023-07-20 13:57:01 -04:00
|
|
|
login: {
|
|
|
|
username: string
|
|
|
|
password: string
|
|
|
|
}
|
|
|
|
channels: string[]
|
2023-06-18 23:19:20 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
export const MessageTypes = ['PRIVMSG', 'WHISPER']
|
2023-07-20 13:57:01 -04:00
|
|
|
export type MessageType = (typeof MessageTypes)[number]
|
2023-06-18 23:19:20 -04:00
|
|
|
|
|
|
|
export interface Metadata {
|
2023-07-20 13:57:01 -04:00
|
|
|
username: string
|
|
|
|
messageType: MessageType
|
|
|
|
channel: string
|
|
|
|
message: string
|
|
|
|
tags: { [k: string]: any }
|
2023-06-18 23:19:20 -04:00
|
|
|
}
|