-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.default.json
201 lines (172 loc) · 6.3 KB
/
config.default.json
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
{
/**
The bot's secret phrase for concluding transactions.
Bot's ADAMANT address will correspond this passPhrase.
**/
"passPhrase": "qwert yuiop asdfg hjkl zxcvb nmqwe",
/**
List of nodes to fetch transactions.
If one become unavailable, pool will choose live one.
**/
"node_ADM": [
"https://endless.adamant.im",
"http://localhost:36666",
"https://clown.adamant.im",
"https://bid.adamant.im",
"https://unusual.adamant.im",
"https://debate.adamant.im",
"http://185.231.245.26:36666",
"https://lake.adamant.im"
],
/** Socket connection is recommended for better user experience **/
"socket": true,
/** Choose socket connection, "ws" or "wss" depending on your server **/
"ws_type": "ws",
/** List of nodes for Ethereum API work **/
"node_ETH": [
"https://ethnode1.adamant.im"
],
/** List of Lisk nodes **/
"node_LSK": [
"https://lisknode3.adamant.im",
"https://lisknode4.adamant.im"
],
/** List of Lisk Service nodes **/
"service_LSK": [
"https://liskservice3.adamant.im",
"https://liskservice4.adamant.im"
],
/** List of ADAMANT InfoServices for catching exchange rates **/
"infoservice": [
"https://info.adamant.im"
],
/** List of cryptocurrencies bot can work with **/
"known_crypto": [
"ADM",
"ETH",
"USDS",
"LSK"
],
/** List of ERC-20 tokens **/
"erc20": [
"USDS"
],
/** How to reply user in-chat, if first unknown command received. **/
"welcome_string": "Hi! 😊 I'm a bounty bot. And this is a stub. Are you ready for the awesome bounty campaign with automatic payout? Type **/help** to see bounty rules.",
/**
Bounty rules. Shown by /help command. You can use template literals
like ${config.rewards_list}, ${config.rewards_tickers}, ${config.twitter_follow[0]},
${config.twitter_retweet[0].tweet}, ${config.twitter_retweet_list},
${config.twitter_retweet_w_comment[0].tweet}, ${config.twitter_follow_list},
${config.twitter_retweet_w_comment[0].min_mentions}, ${config.twitter_retweet_w_comment[0].tag_list},
${config.twitterEligibleString}
**/
"help_message": "Earn **${config.rewards_tickers}** with your social activity! A reward depends on how much Twitter followers you have. Your account ${config.twitterEligibleString}.\n${config.rewards_range}\n\n \nThe campaign rules:\n- Follow account ${config.twitter_follow_list} on Twitter\n- Like & quote ${config.twitter_retweet_w_comment?.[0].tweet}, mentioning ${config.twitter_retweet_w_comment?.[0].min_mentions} friends and ${config.twitter_retweet_w_comment?.[0].tag_list} tags.\n- Like & retweet ${config.twitter_retweet_list}\n- Invite ${config.adamant_campaign.min_contacts} friend in ADAMANT Messenger. They must message you.\n- Send me the name (like @adamant_im) or the link to your Twitter profile to verify.\n\n \nGo!",
/** Bot's name for notifications **/
"bot_name": "Lovely Bounty Bot",
/** ADAMANT accounts to accept control commands from. Control commands from other accounts will not be executed. **/
"admin_accounts": [
"U1123..."
],
/** Twitter accounts user should follow **/
"twitter_follow": [
"@adamant_im"
],
/** Requirements for user's Twitter account. Set all parameters to 0 if even new accounts eligible **/
"twitter_reqs": {
"min_followers": 10,
"min_friends": 5,
"min_statuses": 5,
"min_days": 20
},
/**
Tweets user should quote (retweet with comment).
Min_mentions is how much people he should mention. Hashtags is a list of tags he must use.
**/
"twitter_retweet_w_comment": [
{
"tweet": "https://twitter.com/adamant_im/status/1272945640574722048",
"min_mentions": 3,
"hashtags": [
"#privacy",
"#crypto",
"#anonymity",
"#decentralization"
]
}
],
/** Tweets user should retweet **/
"twitter_retweet": [
{
"tweet": "https://twitter.com/adamant_im/status/1272945640574722048"
}
],
/**
Minimum contacts user must invite to ADAMANT Messenger.
Contacts must be new users.
0 is disabled.
**/
"adamant_campaign": {
"min_contacts": 1
},
/** List rewards for a Bounty campaign here **/
"rewards": [
{
"currency": "ADM",
"amount": 100
},
{
"currency": "ETH",
"amount": 0.01
}
],
/**
Set progressive scale of reward amounts for each cryptocurrency,
Where `func` is a mathjs.org function. Limit followers with `limit_followers` parameter.
If not set for a currency, plain amount is used, which is set in `rewards.amount`.
**/
"rewards_progression_from_twitter_followers": {
"ADM": {
"func": "sqrt(followers) * 3",
"limit_followers": 5000,
"decimals_transfer": 8,
"decimals_show": 0
}
},
/** Your Twitter API credentials. Get on https://apps.twitter.com/app/new **/
"twitter_api": {
"consumer_key": "",
"consumer_secret": "",
"access_token_key": "",
"access_token_secret": ""
},
/**
Interval in minutes to test Twitter API. Because of different reasons Twitter may temporary block API requests.
To continue, you need manually login into your Twitter account and solve captcha.
This parameter allows to automatically check if Twitter API works well every twitter_api_test_interval minutes.
In case of error the bot will notify you. Also you can run "/test twitterapi" command manually.
0 means disabled.
**/
"twitter_api_test_interval": 600,
/** Notify non-admins that they are not admins. If false, bot will be silent. **/
"notify_non_admins": false,
/** ADAMANT address for notifications and monitoring (if needed, recommended) **/
"adamant_notify": "",
/** Slack key for notifications and monitoring (if needed) **/
"slack": "https://hooks.slack.com/services/",
/** If you want to receive notifications when user completes Bounty tasks **/
"notifyTasksCompleted": true,
/** If you want to receive notifications when user receives a Bounty reward **/
"notifyRewardReceived": true,
/**
Port for getting debug info.
Do not set for live exchange bots, use only for debugging.
Allows to get DBs records like http://ip:port/db?tb=IncomingTxs
**/
"api": false,
/**
The software will use verbosity according to log_level.
It can be none < error < warn < info < log.
**/
"log_level": "log"
}