GitHub API and Config
This commit is contained in:
parent
834b23832e
commit
fe6b8c4887
2 changed files with 10 additions and 0 deletions
6
pom.xml
6
pom.xml
|
|
@ -57,6 +57,12 @@
|
|||
<artifactId>discord-webhooks</artifactId>
|
||||
<version>0.1.8</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.kohsuke</groupId>
|
||||
<artifactId>github-api</artifactId>
|
||||
<version>1.99</version>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
<repositories>
|
||||
|
|
|
|||
|
|
@ -94,6 +94,10 @@ public class Config {
|
|||
return config.getJSONObject("Tokens").getString("Giphy");
|
||||
}
|
||||
|
||||
public String getGitHubToken() {
|
||||
return config.getJSONObject("Tokens").getString("GitHub");
|
||||
}
|
||||
|
||||
public String getMythicalBotListToken() {
|
||||
return config.getJSONObject("Tokens").getString("MythicalBotList");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue