mirror of
https://codeberg.org/SafeTwitch/safetwitch-backend.git
synced 2025-02-16 00:28:01 -05:00
18 lines
391 B
TypeScript
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 }
|
|
}
|