Skip to content
This repository was archived by the owner on Dec 1, 2021. It is now read-only.

Commit e2e6707

Browse files
committed
Added all starter files.
1 parent c9aa3c2 commit e2e6707

16 files changed

Lines changed: 570 additions & 0 deletions

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.idea/
2+
.gradle/
3+
build/

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
# JavaBot2
22
The second iteration of the general-purpose bot for managing the Java Discord server.
3+
4+
**Currently very-much a work-in-progress. Do not commit to `main` without a pull request!**.

build.gradle

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
plugins {
2+
id 'java'
3+
}
4+
5+
group 'net.javadiscord'
6+
version '1.0.0-SNAPSHOT'
7+
8+
sourceCompatibility = 16
9+
targetCompatibility = 16
10+
11+
repositories {
12+
mavenCentral()
13+
}
14+
15+
dependencies {
16+
implementation 'org.javacord:javacord:3.3.2'
17+
18+
implementation 'org.yaml:snakeyaml:1.29'
19+
implementation 'com.google.code.gson:gson:2.8.8'
20+
21+
// Persistence Dependencies
22+
implementation 'org.mongodb:mongodb-driver:3.12.10'
23+
implementation 'org.postgresql:postgresql:42.3.0'
24+
25+
// Lombok annotations
26+
compileOnly 'org.projectlombok:lombok:1.18.22'
27+
annotationProcessor 'org.projectlombok:lombok:1.18.22'
28+
testCompileOnly 'org.projectlombok:lombok:1.18.22'
29+
testAnnotationProcessor 'org.projectlombok:lombok:1.18.22'
30+
31+
// JUnit tests
32+
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
33+
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
34+
}
35+
36+
jar {
37+
manifest {
38+
attributes("Manifest-Version": "1.0", "Main-Class": "net.javadiscord.javabot2.Bot")
39+
}
40+
}
41+
42+
test {
43+
useJUnitPlatform()
44+
}

gradle/wrapper/gradle-wrapper.jar

58.1 KB
Binary file not shown.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1-bin.zip
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists

gradlew

Lines changed: 185 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 89 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

settings.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
rootProject.name = 'javabot2'
2+
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package net.javadiscord.javabot2;
2+
3+
import org.javacord.api.DiscordApi;
4+
import org.javacord.api.DiscordApiBuilder;
5+
import org.javacord.api.interaction.SlashCommandBuilder;
6+
7+
import java.util.List;
8+
9+
public class Bot {
10+
public static void main(String[] args) {
11+
DiscordApi api = new DiscordApiBuilder().setToken("").login().join();
12+
api.bulkOverwriteGlobalSlashCommands(List.of(
13+
new SlashCommandBuilder().setName("test")
14+
));
15+
}
16+
}

0 commit comments

Comments
 (0)