forked from DenizenScript/dDiscordBot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit c9728b4
Showing
6 changed files
with
213 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Disable LF normalization for all files | ||
* -text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# Copied with <3's from SpoutDev's gitignore | ||
# Compiled source # | ||
################### | ||
bin | ||
lib | ||
out | ||
target | ||
*.com | ||
*.class | ||
*.dll | ||
*.exe | ||
*.o | ||
*.so | ||
|
||
# Git # | ||
####### | ||
.git | ||
|
||
# Packages # | ||
############ | ||
*.7z | ||
*.dmg | ||
*.gz | ||
*.iso | ||
*.jar | ||
*.rar | ||
*.tar | ||
*.zip | ||
|
||
# Logs and databases # | ||
###################### | ||
*.log | ||
*.sql | ||
*.sqlite | ||
|
||
# OS generated files # | ||
###################### | ||
.DS_Store | ||
ehthumbs.db | ||
Icon? | ||
Thumbs.db | ||
|
||
# Build files # | ||
################# | ||
MANIFEST.MF | ||
dependency-reduced-pom.xml | ||
|
||
# Project files # | ||
################# | ||
.classpath | ||
.externalToolBuilders | ||
.idea | ||
.project | ||
.settings | ||
build | ||
dist | ||
nbproject | ||
atlassian-ide-plugin.xml | ||
build.xml | ||
nb-configuration.xml | ||
*.iml | ||
*.ipr | ||
*.iws | ||
|
||
# Misc files # | ||
############## | ||
*.bak |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
dDiscordBOt: Adds a Discord Bot to Denizen! | ||
------------------------------------------- | ||
|
||
|
||
**Download (Dev builds)**: http://ci.citizensnpcs.co/job/dDiscordBot/ | ||
|
||
#### Need help using dDiscordBot? Try one of these places: | ||
|
||
**Discord:** https://discord.gg/Q6pZGSR | ||
|
||
#### Made For: | ||
|
||
**Denizen For Bukkit**: https://github.com/DenizenScript/Denizen-For-Bukkit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
<!-- dDiscordBot build file --> | ||
|
||
<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>com.denizenscript</groupId> | ||
<artifactId>ddiscordbot</artifactId> | ||
<packaging>jar</packaging> | ||
<version>0.1</version> | ||
<name>dDiscordBot</name> | ||
<description>Adds a Discord to Denizen</description> | ||
|
||
<properties> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
<build.number>Unknown</build.number> | ||
<BUILD_NUMBER>Unknown</BUILD_NUMBER> | ||
<bukkit.version>1.12.1-R0.1-SNAPSHOT</bukkit.version> | ||
<denizen.version>1.0.2-SNAPSHOT</denizen.version> | ||
</properties> | ||
|
||
<!-- Repositories --> | ||
<repositories> | ||
<repository> | ||
<id>everything</id> | ||
<url>http://repo.citizensnpcs.co</url> | ||
</repository> | ||
<repository> | ||
<id>jcenter</id> | ||
<url>http://jcenter.bintray.com</url> | ||
</repository> | ||
<repository> | ||
<id>jitpack.io</id> | ||
<url>https://jitpack.io</url> | ||
</repository> | ||
</repositories> | ||
|
||
<!-- Dependencies --> | ||
<dependencies> | ||
<dependency> | ||
<groupId>org.bukkit</groupId> | ||
<artifactId>bukkit</artifactId> | ||
<version>${bukkit.version}</version> | ||
<type>jar</type> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>net.aufdemrand</groupId> | ||
<artifactId>denizen</artifactId> | ||
<version>${denizen.version}</version> | ||
<type>jar</type> | ||
<scope>compile</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.github.austinv11</groupId> | ||
<artifactId>Discord4J</artifactId> | ||
<version>2.8.4</version> | ||
<classifier>shaded</classifier> | ||
</dependency> | ||
|
||
</dependencies> | ||
|
||
<ciManagement> | ||
<system>jenkins</system> | ||
<url>http://ci.citizensnpcs.co</url> | ||
</ciManagement> | ||
<scm> | ||
<connection>scm:git:git://github.com/DenizenScript/dDiscordBot.git</connection> | ||
<developerConnection>scm:git:git:@github.com:DenizenScript/dDiscordBot.git</developerConnection> | ||
<url>https://github.com/DenizenScript/dDiscordBot/tree/master/</url> | ||
</scm> | ||
|
||
<build> | ||
<defaultGoal>clean package install</defaultGoal> | ||
<resources> | ||
<resource> | ||
<filtering>true</filtering> | ||
<directory>${basedir}/src/main/resources</directory> | ||
<includes> | ||
<include>*.yml</include> | ||
</includes> | ||
</resource> | ||
</resources> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-jar-plugin</artifactId> | ||
<version>2.2</version> | ||
<configuration> | ||
<archive> | ||
<manifest> | ||
<addClasspath>true</addClasspath> | ||
<classpathPrefix>Denizen/lib/</classpathPrefix> | ||
</manifest> | ||
</archive> | ||
</configuration> | ||
</plugin> | ||
|
||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<version>2.5.1</version> | ||
<configuration> | ||
<source>1.8</source> | ||
<target>1.8</target> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
</project> |
15 changes: 15 additions & 0 deletions
15
src/main/java/com/denizenscript/ddiscordbot/dDiscordBot.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.denizenscript.ddiscordbot; | ||
|
||
import net.aufdemrand.denizen.utilities.debugging.dB; | ||
import org.bukkit.plugin.java.JavaPlugin; | ||
|
||
public class dDiscordBot extends JavaPlugin { | ||
|
||
public static dDiscordBot instance; | ||
|
||
@Override | ||
public void onEnable() { | ||
dB.log("dDiscordBot loaded!"); | ||
instance = this; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
name: dDiscordBot | ||
authors: ['mcmonkey'] | ||
version: ${project.version} (build ${BUILD_NUMBER}) | ||
main: com.denizenscript.ddiscordbot.dDiscordBot | ||
softdepend: [Denizen] |