Skip to content
This repository was archived by the owner on Jul 26, 2019. It is now read-only.

Commit 0d89c7e

Browse files
committed
Fixing typos and javadocs
1 parent 231e561 commit 0d89c7e

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Make sure to replace `{version}` with the above shown version.
2222
Put this code into your `build.gradle`:
2323
```gradle
2424
repositories{
25-
jcenter()
25+
maven { url = 'https://dl.bintray.com/andre601/maven' }
2626
}
2727
2828
dependencies{
@@ -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:
108108
handler.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.
112112
Use `BotBlockAPI.Builder#setUpdateInterval(Integer)` to define a delay. It is counted in minutes and default is 30.
113113

114114
#### Manual posting

src/main/java/com/andre601/javabotblockapi/BotBlockAPI.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)