Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/generaltao2/maven-spring-bot
https://github.com/generaltao2/maven-spring-bot
Last synced: 14 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/generaltao2/maven-spring-bot
- Owner: GeneralTao2
- License: gpl-3.0
- Created: 2023-11-13T21:17:31.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-11-19T14:00:14.000Z (12 months ago)
- Last Synced: 2024-10-10T13:34:55.656Z (about 1 month ago)
- Language: Java
- Size: 107 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Discord4J Example Projects
[![Support Server Invite](https://img.shields.io/discord/208023865127862272.svg?color=7289da&label=Discord4J&logo=discord&style=flat-square)](https://discord.gg/d4j)
Provided are a set of very simple example projects showcasing two simple slash commands: ping-pong and greet using Discord4J `3.2.0`.
## ๐ Quick Links
* [Github](https://github.com/Discord4J/Discord4J)
* [Javadocs](https://www.javadoc.io/doc/com.discord4j/discord4j-core)
* [Documentation](https://docs.discord4j.com)
* [Discord](https://discord.gg/d4j)## Interactions
Discord4J has full support for interactions. These example projects showcase how to easily create, manage, and respond to application commands (slash commands). More details on using interactions with D4J can be found in our docs.
## โ Inviting Your Bot
Discord now requires an additional scope in the invite link for slash commands. Below is a template invite link that will allow the bot to be invited and support application commands. Replace `{CLIENT_ID_HERE}` with your bot's client ID, found on its developer application page.
`
https://discord.com/oauth2/authorize?client_id={CLIENT_ID_HERE}&permissions=0&scope=bot%20applications.commands
`This invite link allows inviting your bot to a server, and enabling application commands from your bot. This template link does not provide any additional permissions or scopes. To create a fully customized link, discord offers an invite link builder on the developer applications page (Click into your bot application, and navigate to the "OAuth2" page)
## ๐ฆ Dependency Managers
Each project is duplicated in Maven and Gradle to show how to import Discord4J into your project with the package manager of your choice.## ๐ Spring Boot
Discord4J is fully compatible with the Spring Boot framework, and a set of example projects are provided showcasing what is possible with Spring and Discord4J together; simplifying and/or removing boilerplate shown in the Discord4J-only projects.
## ๐งพ Logging
* [Logging Docs](https://docs.discord4j.com/logging/)
Discord4j utilizes the SLF4J logging API. In this set of example projects, a simple logback configuration is used to demonstrate basic logging to console.
## ๐ณ Minecraft
Discord4J can be used for a Minecraft plugin, however special care should be taken to avoid blocking on the main thread and dealing with Minecraft's old Netty & Jackson requirements.
For more information on how to use D4J for your Minecraft plugin, check the wiki [here](https://docs.discord4j.com/frequently-asked-questions/#im-getting-javalangnosuchmethoderror-ionetty-or-javalangnoclassdeffounderror-comfasterxml)