19 lines
391 B
TypeScript
19 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 }
|
||
|
}
|