项目作者: danthe1st

项目描述 :
Adds custom slash commands to Discord
高级语言: Java
项目地址: git://github.com/danthe1st/custom-slash-commands.git
创建时间: 2021-01-17T13:36:21Z
项目社区:https://github.com/danthe1st/custom-slash-commands

开源协议:

下载


Custom slash commands

demo

Setup

  • Create an application on https://discord.com/developers/applications/me 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 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