GitHub API and Config

This commit is contained in:
GregTCLTK 2019-11-22 05:39:21 -08:00
parent 834b23832e
commit fe6b8c4887
No known key found for this signature in database
GPG key ID: A91BADE5C070FF67
2 changed files with 10 additions and 0 deletions

View file

@ -57,6 +57,12 @@
<artifactId>discord-webhooks</artifactId> <artifactId>discord-webhooks</artifactId>
<version>0.1.8</version> <version>0.1.8</version>
</dependency> </dependency>
<dependency>
<groupId>org.kohsuke</groupId>
<artifactId>github-api</artifactId>
<version>1.99</version>
</dependency>
</dependencies> </dependencies>
<repositories> <repositories>

View file

@ -94,6 +94,10 @@ public class Config {
return config.getJSONObject("Tokens").getString("Giphy"); return config.getJSONObject("Tokens").getString("Giphy");
} }
public String getGitHubToken() {
return config.getJSONObject("Tokens").getString("GitHub");
}
public String getMythicalBotListToken() { public String getMythicalBotListToken() {
return config.getJSONObject("Tokens").getString("MythicalBotList"); return config.getJSONObject("Tokens").getString("MythicalBotList");
} }