This project was create for people to quickly set up a discordbot. The project has javacord, jpa, hamcrest (testing) and H2 as default database.
Things to do after cloning the project.
- Rename the folder com.example.springbootjavacord to: com."yourname"."botname" in intellij use shift+f6 and choose rename whole package
- Do the same in the pom.xml
<groupId>com."yourname"</groupId>
<artifactId>"botname"</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>"botname"</name>
<description>"description of bot"t</description>- In the logback.xml find "example" and give your logs a proper name
- In the application properties set your token, change the db file name or use a real database
- The project has example classes to show how it works.
By default the project is set for java 16. In the pom.xml file you can set it to java 11 with the xml below
<configuration>
<source>11</source>
<target>11</target>
</configuration>For further reference, please consider the following sections:
- Official Apache Maven documentation
- Spring Boot Maven Plugin Reference Guide
- Create an OCI image
- Spring Data JPA
- Spring Configuration Processor
- Spring Boot DevTools
- JavaCord
The following guides illustrate how to use some features concretely: