forked from Steem-FOSSbot/steem-fossbot-voter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_edit-config.html
270 lines (257 loc) · 12.8 KB
/
_edit-config.html
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
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<!-- For IE 9 and below. ICO should be 32x32 pixels in size -->
<!--[if IE]><link rel="shortcut icon" href="/favicon.ico"><![endif]-->
<!-- Touch Icons - iOS and Android 2.1+ 180x180 pixels in size. -->
<link rel="apple-touch-icon-precomposed" href="/apple-touch-icon-precomposed.png">
<!-- Firefox, Chrome, Safari, IE 11+ and Opera. 196x196 pixels in size. -->
<link rel="icon" href="/favicon.png">
<title>Edit Config - Voter</title>
<!-- Bootstrap core CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="css/info-pages.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#"><img src="/img/voter-32.png"></a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
<li><a href="/">Dashboard</a></li>
<li><a href="https://github.com/Steem-FOSSbot/steem-fossbot-voter">Source</a></li>
<li><a href="https://github.com/Steem-FOSSbot/steem-fossbot-voter/blob/master/docs/index.md">Docs</a></li>
</ul>
</div>
</div>
</nav>
<div class="container-fluid">
<h1 class="page-header">Edit Config</h1>
<!--h2 class="sub-header">Message</h2-->
<h2 class="sub-header">Configuration</h2>
<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th>Variable</th>
<th>Description</th>
<th>Value</th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<th>Standard</th>
<th>Most people will want to edit these</th>
<td></td>
<th></th>
</tr>
<!-- removed in #90, TODO : remove this -->
<!--tr>
<td>MAX_VOTES_IN_24_HOURS</td>
<td>Maximum number of votes in 24 hours. This is actually more like a target and works to increase the score threshold proportional to the number of votes already cast today</td>
<td>
<form class="form-add">
<input type="number" name="input_field_0" id="input_field_0" placeholder="50">
</form>
</td>
<th><p><a class="btn btn-default" href="javascript:updateVar(0)" role="button">Update</a></p></th>
</tr-->
<tr>
<td>MIN_POST_AGE_TO_CONSIDER</td>
<td>Number of minutes minimum to consider voting on a post. Any post younger than this time will be discarded for consideration at next run, if old enough then</td>
<td>
<form class="form-add">
<input type="number" step="0.01" name="input_field_1" id="input_field_1" placeholder="21.22">
</form>
</td>
<th><p><a class="btn btn-default" href="javascript:updateVar(1)" role="button">Update</a></p></th>
</tr>
<tr>
<td>TIME_ZONE</td>
<td>Time zone for date display, in tz format (<a href="https://en.wikipedia.org/wiki/List_of_tz_database_time_zones">see here</a> for a list of formats). Used in UI, logging, etc.</td>
<td>
<form class="form-add">
<input type="text" name="input_field_2" id="input_field_2" placeholder="Etc/GMT+3">
</form>
</td>
<th><p><a class="btn btn-default" href="javascript:updateVar(2)" role="button">Update</a></p></th>
</tr>
<tr>
<td>MIN_VOTING_POWER</td>
<td>Do not vote if voting power left on account is less than this value</td>
<td>
<form class="form-add">
<input type="number" name="input_field_15" id="input_field_15" placeholder="0">
</form>
</td>
<th><p><a class="btn btn-default" href="javascript:updateVar(15)" role="button">Update</a></p></th>
</tr>
<tr>
<td>VOTE_VOTING_POWER</td>
<td>Vote power used when casting votes</td>
<td>
<form class="form-add">
<input type="number" name="input_field_16" id="input_field_16" placeholder="0">
</form>
</td>
<th><p><a class="btn btn-default" href="javascript:updateVar(16)" role="button">Update</a></p></th>
</tr>
<tr>
<th>Advanced</th>
<th>Edit with caution, setting these incorrectly can really break the bot</th>
<td></td>
<th></th>
</tr>
<tr>
<td>MAX_POST_TO_READ</td>
<td>Max number of posts fetched. Any more than this will be discarded</td>
<td>
<form class="form-add">
</form>
<input type="number" name="input_field_4" id="input_field_4" placeholder="100">
</td>
<th><p><a class="btn btn-default" href="javascript:updateVar(4)" role="button">Update</a></p></th>
</tr>
<tr>
<td>MIN_WORDS_FOR_ARTICLE</td>
<td>Minimum number of words for a post to be considered as having article content</td>
<td>
<form class="form-add">
<input type="number" name="input_field_5" id="input_field_5" placeholder="400">
</form>
</td>
<th><p><a class="btn btn-default" href="javascript:updateVar(5)" role="button">Update</a></p></th>
</tr>
<tr>
<td>NUM_POSTS_FOR_AVG_WINDOW</td>
<td>Maximum number of posts used for averaging window used to determine baseline threshold score</td>
<td>
<form class="form-add">
<input type="number" name="input_field_6" id="input_field_6" placeholder="10">
</form>
</td>
<th><p><a class="btn btn-default" href="javascript:updateVar(6)" role="button">Update</a></p></th>
</tr>
<tr>
<td>MIN_SCORE_THRESHOLD</td>
<td>Minimum score value for thresholding. Anything below this will not be added to averaging and so will be discarded. Also no post with score less than this will be voted on</td>
<td>
<form class="form-add">
<input type="number" step="0.01" name="input_field_7" id="input_field_7" placeholder="10">
</form>
</td>
<th><p><a class="btn btn-default" href="javascript:updateVar(7)" role="button">Update</a></p></th>
</tr>
<tr>
<td>SCORE_THRESHOLD_INC_PC</td>
<td>Ratio increase on average when caluclating threshold. See Threshold Calculation above. Multiply by 100 to get percentage but this value should be between 0.0 and 1.0</td>
<td>
<form class="form-add">
<input type="number" step="0.01" name="input_field_8" id="input_field_8" placeholder="0.1">
</form>
</td>
<th><p><a class="btn btn-default" href="javascript:updateVar(8)" role="button">Update</a></p></th>
</tr>
<tr>
<td>CAPITAL_DOLPHIN_MIN</td>
<td>Minimum Steem Power to qualify as a dolphin</td>
<td>
<form class="form-add">
<input type="number" name="input_field_9" id="input_field_9" placeholder="25000">
</form>
</td>
<th><p><a class="btn btn-default" href="javascript:updateVar(9)" role="button">Update</a></p></th>
</tr>
<tr>
<td>CAPITAL_WHALE_MIN</td>
<td>Minimum Steem Power to qualify as a whale</td>
<td>
<form class="form-add">
<input type="number" name="input_field_10" id="input_field_10" placeholder="100000">
</form>
</td>
<th><p><a class="btn btn-default" href="javascript:updateVar(10)" role="button">Update</a></p></th>
</tr>
<tr>
<td>MIN_KEYWORD_LEN</td>
<td>Minimum number of characters for a word to be considered a keyword</td>
<td>
<form class="form-add">
<input type="number" name="input_field_11" id="input_field_11" placeholder="4">
</form>
</td>
<th><p><a class="btn btn-default" href="javascript:updateVar(11)" role="button">Update</a></p></th>
</tr>
<tr>
<td>DAYS_KEEP_LOGS</td>
<td>Number of days for logs to expire at. These are kept in a 25 MB limit database currently if you're using a free Heroku set up so we keep this number low</td>
<td>
<form class="form-add">
<input type="number" name="input_field_12" id="input_field_12" placeholder="2">
</form>
</td>
<th><p><a class="btn btn-default" href="javascript:updateVar(12)" role="button">Update</a></p></th>
</tr>
<tr>
<td>MIN_LANGUAGE_USAGE_PC</td>
<td>Minimum amount (expressed as a ratio, between 0.0 and 1.0) of document required to contain a language before it will be considered having a signification amount of that language as content</td>
<td>
<form class="form-add">
<input type="number" step="0.01" name="input_field_13" id="input_field_13" placeholder="0.1">
</form>
</td>
<th><p><a class="btn btn-default" href="javascript:updateVar(13)" role="button">Update</a></p></th>
</tr>
<tr>
<td>MIN_KEYWORD_FREQ</td>
<td>Minimum appearances of a word in a post for it to be considered a keyword</td>
<td>
<form class="form-add">
<input type="number" step="1" name="input_field_14" id="input_field_14" placeholder="3">
</form>
</td>
<th><p><a class="btn btn-default" href="javascript:updateVar(14)" role="button">Update</a></p></th>
</tr>
</tbody>
</table>
</div>
</div>
<div class="container-fluid">
<h1 class="page-header">Import Config Vars as JSON</h1>
<!--h2 class="sub-header">Message</h2-->
<div class="row">
<form class="form-list" action="/edit-config" method="post">
<textarea name="config_vars" id="config_vars" cols="150" rows="10"></textarea>
<button class="btn btn-lg btn-primary btn-block" type="submit" value="POST">Import These Config Vars</button>
</form>
</div>
</div>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="js/jquery-1.12.4.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="js/bootstrap.min.js"></script>
<script src="js/edit-config.js"></script>
</body>
</html>