-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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> |
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(); | ||
} | ||
} |
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; | ||
} | ||
} |