-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.ts
67 lines (56 loc) · 1.2 KB
/
config.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
// Pokemon Showdown bot config
"use strict";
/**
* Pokemon Showdown bot config
*/
export interface PokemonShowdownBotConfig {
/**
* Server hostname
*/
host: string;
/**
* Server port
*/
port: number;
/**
* True to use secure connection
*/
secure: boolean;
/**
* Login server URL
* Default: play.pokemonshowdown.com
*/
loginServer?: string;
/**
* Server ID for the login server
* Eg: showdown
*/
serverId: string;
/**
* Max number of lines the bot can send at a time
* This a server restriction
* By default is 3
*/
maxLinesSend?: number;
/**
* Retry connection if the bot disconnects?
* Default true
*/
connectionRetry?: boolean;
/**
* Delay to retry the connection (milliseconds)
* By default 10 seconds
*/
connectionRetryDelay?: number;
/**
* Length of the message buffer
* This buffer is used to send messages
* By default, 6 messages
*/
sendBufferMaxLength?: number;
/**
* Milliseconds to wait after sending a message batch
* By default 200 milliseconds
*/
chatThrottleDelay?: number;
}