{"id":22582900,"url":"https://github.com/brandonfl/discord-slash-command-example","last_synced_at":"2026-04-28T11:33:56.212Z","repository":{"id":104422936,"uuid":"453442153","full_name":"brandonfl/discord-slash-command-example","owner":"brandonfl","description":"Example of discord slash command using JPA","archived":false,"fork":false,"pushed_at":"2022-01-29T16:41:41.000Z","size":427,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-28T16:45:35.971Z","etag":null,"topics":["discord","discord-bot","jda","jda-bot","jda-discord-bot","slash-command","slash-commands"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brandonfl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-29T15:48:50.000Z","updated_at":"2022-01-29T16:46:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"c0482640-7485-430b-8005-4c657ac97d30","html_url":"https://github.com/brandonfl/discord-slash-command-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/brandonfl/discord-slash-command-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandonfl%2Fdiscord-slash-command-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandonfl%2Fdiscord-slash-command-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandonfl%2Fdiscord-slash-command-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandonfl%2Fdiscord-slash-command-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brandonfl","download_url":"https://codeload.github.com/brandonfl/discord-slash-command-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandonfl%2Fdiscord-slash-command-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32379342,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T11:25:28.583Z","status":"ssl_error","status_checked_at":"2026-04-28T11:25:05.435Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["discord","discord-bot","jda","jda-bot","jda-discord-bot","slash-command","slash-commands"],"created_at":"2024-12-08T06:12:47.856Z","updated_at":"2026-04-28T11:33:56.187Z","avatar_url":"https://github.com/brandonfl.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003ch1 align=\"center\"\u003e\n  \u003ca href=\"https://github.com/brandonfl/discord-slash-command-example\"\u003e\u003cimg src=\"https://github.com/brandonfl/discord-slash-command-example/blob/assets/discord-slash-command.png?raw=true\" width=\"400\"/\u003e\u003c/a\u003e\n  \u003cbr\u003e\n  \u003ca href=\"https://github.com/brandonfl/discord-slash-command-example\"\u003eDiscord slash command example\u003c/a\u003e\n  \u003cbr\u003e\n\u003c/h1\u003e\n\u003ch4 align=\"center\"\u003e Example of discord slash command using JPA \u003c/h4\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/brandonfl/discord-slash-command-example/actions/workflows/sonar.yml\"\u003e\u003cimg src=\"https://github.com/brandonfl/discord-slash-command-example/actions/workflows/sonar.yml/badge.svg\" alt=\"github-sonar\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://sonarcloud.io/summary/new_code?id=brandonfl_discord-slash-command-example\"\u003e\u003cimg src=\"https://sonarcloud.io/api/project_badges/measure?project=brandonfl_discord-slash-command-example\u0026metric=alert_status\" alt=\"sonar-gate\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/brandonfl/discord-slash-command-example/blob/master/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/github/license/brandonfl/discord-slash-command-example\" alt=\"licence\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#how-to-use\"\u003eHow to use\u003c/a\u003e •\n  \u003ca href=\"#variables\"\u003eVariables\u003c/a\u003e •\n  \u003ca href=\"#licence\"\u003eLicence\u003c/a\u003e •\n  \u003ca href=\"#links\"\u003eLinks\u003c/a\u003e \n\u003c/p\u003e\n\n\n## How to use\n#### Use with java\n1. Compile `mvn clean package`\n2. Run `java -jar target/bot.war` with \u003ca href=\"#variables\"\u003evariables\u003c/a\u003e\n\n#### Use with tomcat\n1. Compile `mvn clean package` and get the war file in `target`folder\n2. Config the config file of your bot `CATALINA-HOME/conf/Catalina/localhost/bot.xml` with \u003ca href=\"#variables\"\u003evariables\u003c/a\u003e\n3. Deploy the war `CATALINA-HOME/webapps/bot.war`\n\n## Variables\n\n| Key | Description | Default |\n|--|--|--|\n| LOG_FILE | Location of log file | ./log/bot.log |\n| BOT_TOKEN | Token of the Discord bot | None - **required** |\n| 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 |\n| BOT_OWNER_ID | Discord bot owner | 226715707017134080 - **required** |\n| BOT_CO_OWNER_ID | Discord bot co-owners (separated by a comma) | None |\n\n## Licence\n\nProject under [MIT](https://github.com/brandonfl/discord-slash-command-example/blob/master/LICENSE) licence\n\n## Links\n\n- [Discord Slash Commands FAQ](https://support.discord.com/hc/fr/articles/1500000368501-Slash-Commands-FAQ)\n- [JDA (Java Discord API)](https://github.com/DV8FromTheWorld/JDA#jda-java-discord-api)\n- [JDA-Chewtils](https://github.com/Chew/JDA-Chewtils)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrandonfl%2Fdiscord-slash-command-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrandonfl%2Fdiscord-slash-command-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrandonfl%2Fdiscord-slash-command-example/lists"}