This repository was archived by the owner on Jul 26, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
src/main/java/com/andre601/javabotblockapi Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ Make sure to replace `{version}` with the above shown version.
22
22
Put this code into your ` build.gradle ` :
23
23
``` gradle
24
24
repositories{
25
- jcenter()
25
+ maven { url = 'https://dl.bintray.com/andre601/maven' }
26
26
}
27
27
28
28
dependencies{
@@ -36,7 +36,7 @@ For maven use this code snipped:
36
36
<repositories >
37
37
<repository >
38
38
<id >jcenter</id >
39
- <url >https://jcenter .bintray.com</url >
39
+ <url >https://dl .bintray.com/andre601/maven </url >
40
40
</repository >
41
41
</repositories >
42
42
@@ -108,7 +108,7 @@ For that simply use `Request#stopAutoPosting();`. Here is another example:
108
108
handler. stopAutoPosting();
109
109
```
110
110
111
- Note thet the delay in which you post to the API is defined through the BotBlockAPI.
111
+ Note that the delay in which you post to the API is defined through the BotBlockAPI.
112
112
Use ` BotBlockAPI.Builder#setUpdateInterval(Integer) ` to define a delay. It is counted in minutes and default is 30.
113
113
114
114
#### Manual posting
Original file line number Diff line number Diff line change @@ -236,7 +236,12 @@ public Builder disableJDA(boolean disable){
236
236
* <p>You can as an alternative define JDA directly through the constructor.
237
237
*
238
238
* <p><b>Example:</b>
239
- * <br>{@code BotBlockAPI api = new BotBlockAPI.Builder(Message#getJDA()).build()}
239
+ * <pre><code>
240
+ * JDA jda = // Getting the JDA from somewhere
241
+ *
242
+ * BotBlockAPI api = new BotBlockAPI.Builder(jda) // Setting the JDA
243
+ * // Adding sites through addAuthToken(String, String) and the build it with build()
244
+ * </code></pre>
240
245
*
241
246
* @param jda
242
247
* The instance of {@link net.dv8tion.jda.core.JDA JDA} to use. May not be null.
You can’t perform that action at this time.
0 commit comments