Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
DerBanko committed Feb 21, 2022
0 parents commit 546854a
Show file tree
Hide file tree
Showing 36 changed files with 3,011 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/runConfigurations.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

124 changes: 124 additions & 0 deletions .idea/uiDesigner.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

82 changes: 82 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>tv.banko</groupId>
<artifactId>ValorantEvent</artifactId>
<version>1.0-SNAPSHOT</version>

<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
</properties>

<build>
<directory>../../../Export/Public/ValorantEvent/</directory>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.1.2</version>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>prepare-package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/lib</outputDirectory>
<overWriteReleases>false</overWriteReleases>
<overWriteSnapshots>false</overWriteSnapshots>
<overWriteIfNewer>true</overWriteIfNewer>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<!-- Build an executable JAR -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.2.0</version>
<configuration>
<finalName>ValorantEvent</finalName>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>lib/</classpathPrefix>
<mainClass>tv.banko.valorantevent.Main</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
</plugins>
</build>

<dependencies>
<dependency>
<groupId>net.dv8tion</groupId>
<artifactId>JDA</artifactId>
<version>5.0.0-alpha.5</version>
</dependency>
<dependency>
<groupId>org.mongodb</groupId>
<artifactId>mongodb-driver-async</artifactId>
<version>3.0.4</version>
</dependency>
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>okhttp</artifactId>
<version>4.9.2</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.json/json -->
<dependency>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
<version>20211205</version>
</dependency>
</dependencies>

</project>
8 changes: 8 additions & 0 deletions src/main/java/tv/banko/valorantevent/Main.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package tv.banko.valorantevent;

public class Main {

public static void main(String[] args) {
new ValorantEvent();
}
}
46 changes: 46 additions & 0 deletions src/main/java/tv/banko/valorantevent/ValorantEvent.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
package tv.banko.valorantevent;

import tv.banko.valorantevent.api.RankAPI;
import tv.banko.valorantevent.database.Database;
import tv.banko.valorantevent.discord.Discord;
import tv.banko.valorantevent.tournament.Tournament;

import javax.security.auth.login.LoginException;

public class ValorantEvent {

private final Database database;
private final RankAPI rankAPI;

private Discord discord;
private Tournament tournament;

public ValorantEvent() {

this.database = new Database(this);
this.rankAPI = new RankAPI();

try {
this.discord = new Discord(this);
this.tournament = new Tournament(this);
} catch (LoginException | InterruptedException e) {
e.printStackTrace();
}
}

public RankAPI getRankAPI() {
return rankAPI;
}

public Discord getDiscord() {
return discord;
}

public Database getDatabase() {
return database;
}

public Tournament getTournament() {
return tournament;
}
}
Loading

0 comments on commit 546854a

Please sign in to comment.