-
Notifications
You must be signed in to change notification settings - Fork 58
/
config.js
68 lines (54 loc) · 2.46 KB
/
config.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
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
68
const config = {
/* These are your twitter developer authentication details. Get them at https://apps.twitter.com/ */
auth: {
consumer_key: '',
consumer_secret: '',
token: '',
token_secret: ''
},
// The searches the bot will do
SEARCH_QUERIES: [
'retweet to win',
'RT to win',
'retweet 2 win',
'RT 2 win'
],
// Appended at the end of search queries to filter out some data
SEARCH_QUERY_FILTERS: ' -vote -filter:retweets',
// Filter out tweets containing any phrases you want - just add them as strings in the array
POST_SEARCH_FILTERS: [],
// Allow searching by location. A Valid geocode has the form "lat long radius_in_miles"
// Example: '37.781157 -122.398720 1mi'
SEARCH_BY_GEOCODE: '',
// 'Specifies what type of search results you would prefer to receive. The current default is “mixed.” Valid values include:'
// Default: 'recent' (return only the most recent results in the response)
// 'mixed' (Include both popular and real time results in the response)
// 'popular' (return only the most popular results in the response)
RESULT_TYPE: 'mixed',
// Minimum amount of retweets a tweet needs before we retweet it.
// - Significantly reduces the amount of fake contests retweeted and stops
// retweeting other bots that retweet retweets of other bots.
// Default: 10
MIN_RETWEETS_NEEDED: 10,
// Maximum amount of tweets a user can have before we do not retweet them.
// - Accounts with an extremely large amount of tweets are often bots,
// therefore we should ignore them and not retweet their tweets.
// Default: 20000
// 0 (disables)
MAX_USER_TWEETS: 20000,
// If option above is enabled, allow us to block them.
// - Blocking users do not prevent their tweets from appearing in search,
// but this will ensure you do not accidentally retweet them still.
// Default: false
// true (will block user)
MAX_USER_TWEETS_BLOCK: false,
// 10 minutes timeout for limit exceeded
RATE_LIMIT_EXCEEDED_TIMEOUT: 1000 * 60 * 10,
// 15 seconds timeout for Retweets
RETWEET_TIMEOUT: 1000 * 15,
// 30 seconds for Search Timeout
RATE_SEARCH_TIMEOUT: 1000 * 30,
// Array of preferred accounts. If set, it only filters tweets from these accounts. Example: ['user1', 'user2']
PREFERRED_ACCOUNTS: []
};
module.exports = config;