Skip to content

Example of discord slash command using JPA

License

Notifications You must be signed in to change notification settings

brandonfl/discord-slash-command-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example of discord slash command using JPA

github-sonar sonar-gate licence

How to useVariablesLicenceLinks

How to use

Use with java

  1. Compile mvn clean package
  2. Run java -jar target/bot.war with variables

Use with tomcat

  1. Compile mvn clean package and get the war file in targetfolder
  2. Config the config file of your bot CATALINA-HOME/conf/Catalina/localhost/bot.xml with variables
  3. Deploy the war CATALINA-HOME/webapps/bot.war

Variables

Key Description Default
LOG_FILE Location of log file ./log/bot.log
BOT_TOKEN Token of the Discord bot None - required
BOT_SETTING_GUID_DEVELOPMENT_ID For development only: Upserting commands to a specific server will update the commands cache instantly, instead of taking up to an hour on global commands. None
BOT_OWNER_ID Discord bot owner 226715707017134080 - required
BOT_CO_OWNER_ID Discord bot co-owners (separated by a comma) None

Licence

Project under MIT licence

Links