-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.ts
53 lines (49 loc) · 1.26 KB
/
settings.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
export interface Settings {
//// SETUP ////
/**
* Matrix Homeserver
* Eg. "https://matrix-federation.matrix.org"
*/
homeserverUrl: string;
/**
* Access Token of the bot account
* See https://t2bot.io/docs/access_tokens/ for a simple way to generate
*/
matrixAccessToken: string;
/**
* MQTT broker server url
* Passed as a parameter to https://github.com/mqttjs/MQTT.js/blob/master/README.md#mqttconnecturl-options
* Eg. "mqtt://127.0.0.1" or "mqtt://your-domain.example.com:3130"
*/
mqttBroker: string;
/**
* MQTT broker topic that your OpenGarage device is sub/pub-ing too
* Eg. "My OpenGarage"
*/
mqttDeviceTopic: string;
/**
* MQTT broker username
*/
mqttUsername: string | undefined;
/**
* MQTT broker password
*/
mqttPassword: string | undefined;
/**
* File used as temporary storage by the bot
* Optional. Eg. `bot-storage.json`
*/
storageFile?: string;
//// OPERATIONS ////
/**
* Words to prompt the bot to respond.
* Defaults to `'!opengarage', '!og'`
*/
promptWords?: string[];
/**
* Should the bot auto accept invites to rooms?
* (Probably not if you want your garage door access private)
* Defaults to `false`
*/
autoJoin?: boolean;
}