Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danthe1st/custom-slash-commands
Adds custom slash commands to Discord
https://github.com/danthe1st/custom-slash-commands
discord discord4j java slash-commands
Last synced: 14 days ago
JSON representation
Adds custom slash commands to Discord
- Host: GitHub
- URL: https://github.com/danthe1st/custom-slash-commands
- Owner: danthe1st
- Created: 2021-01-17T13:36:21.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-01-17T17:43:54.000Z (almost 4 years ago)
- Last Synced: 2024-11-06T20:49:25.405Z (2 months ago)
- Topics: discord, discord4j, java, slash-commands
- Language: Java
- Homepage:
- Size: 658 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Custom slash commands
![demo](https://github.com/danthe1st/custom-slash-commands/raw/assets/demo.gif)## Setup
* Create an application on and add a bot to it.
* Create a file called `.token` and save your bot token in it.
* Clone this repository.
* If you want to use an IDE that supports maven, import the project in your IDE of choice as a maven project.
Do not forget to install the [lombok](https://projectlombok.org/) plugin, however.
* Run the class `io.github.danthe1st.customslashcommands.Bot`.
If you do not use an IDE that supports maven or lombok, install maven and run `mvn exec:java -Dexec.mainClass=io.github.danthe1st.customslashcommands.Bot`.
* Add the application using the link shown in the console (NOT using the bot-scope)
The link should look like this: `https://discord.com/api/oauth2/authorize?client_id=YOUR_CLIENT_ID_HERE&scope=applications.commands`.
* Have fun