-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstants.js
30 lines (24 loc) · 1021 Bytes
/
constants.js
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
export default {
TIME_BETWEEN_TWEETS: 60000 * 20,
SHORT_TWEET_CHANCE: 0.35,
SEPARATE_BY_DOT_CHANCE: 0.35,
/* Temporarily turn to 0. With the current search method, they tend to
ruin the tweet if anything. Might come up with something better soon. */
GIF_REGULAR_CHANCE: 0,
IMGUR_REGULAR_CHANCE: 0,
LAST_HOOK_TWITTER_WORD: 25 - 1,
/* Length of each third will be between 1 and MAX_TWEET_THIRD_LEN */
MAX_TWEET_THIRD_LEN: 15,
MAX_TWEET_THIRD_LEN_SHORT: 4,
/* The middle third can be as long as MAX_TWEET_THIRD_FORCED_LEN if needed */
MAX_TWEET_THIRD_FORCED_LEN: 20,
MAX_TWEET_THIRD_FORCED_LEN_SHORT: 7,
MAX_TWEET_CHARS: 280,
/* How many strings with mentions or hashtags may be discarded per third */
SPECIAL_CHAR_DISCARDS_ALLOWED: 4,
/* Careful with the three below, as the search mode also depend on them */
/* How many searches may be performed per third before dropping the tweet */
THIRD_1_RETRIES_ALLOWED: 1,
THIRD_2_RETRIES_ALLOWED: 5,
THIRD_3_RETRIES_ALLOWED: 5,
}