28 lines
584 B
TypeScript
28 lines
584 B
TypeScript
export interface PluginOptions {
|
|
homeserver?: string
|
|
userId?: string
|
|
accessToken?: string
|
|
password?: string
|
|
deviceId?: string
|
|
autoJoin?: boolean
|
|
triggerPatterns?: string[]
|
|
ignoreRooms?: string[]
|
|
ignoreUsers?: string[]
|
|
allowedUsers?: string[]
|
|
formatHtml?: boolean
|
|
threadIsolation?: boolean
|
|
respondToThreadReplies?: boolean
|
|
rateLimitSeconds?: number
|
|
botName?: string
|
|
storagePath?: string
|
|
}
|
|
|
|
export interface MatrixEventContext {
|
|
sessionId: string
|
|
roomId: string
|
|
sender: string
|
|
query: string
|
|
replyThreadRootId?: string
|
|
matrixEventId: string
|
|
}
|