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.
2222Put this code into your ` build.gradle ` :
2323``` gradle
2424repositories{
25- jcenter()
25+ maven { url = 'https://dl.bintray.com/andre601/maven' }
2626}
2727
2828dependencies{
@@ -36,7 +36,7 @@ For maven use this code snipped:
3636<repositories >
3737 <repository >
3838 <id >jcenter</id >
39- <url >https://jcenter .bintray.com</url >
39+ <url >https://dl .bintray.com/andre601/maven </url >
4040 </repository >
4141</repositories >
4242
@@ -108,7 +108,7 @@ For that simply use `Request#stopAutoPosting();`. Here is another example:
108108handler. stopAutoPosting();
109109```
110110
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.
112112Use ` BotBlockAPI.Builder#setUpdateInterval(Integer) ` to define a delay. It is counted in minutes and default is 30.
113113
114114#### Manual posting
Original file line number Diff line number Diff line change @@ -236,7 +236,12 @@ public Builder disableJDA(boolean disable){
236236 * <p>You can as an alternative define JDA directly through the constructor.
237237 *
238238 * <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>
240245 *
241246 * @param jda
242247 * 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