{"id":22582902,"url":"https://github.com/brandonfl/discord-java-docker-bot","last_synced_at":"2025-03-28T16:45:01.994Z","repository":{"id":43313514,"uuid":"284457219","full_name":"brandonfl/discord-java-docker-bot","owner":"brandonfl","description":"Template project to create Discord bots with Docker and Java","archived":false,"fork":false,"pushed_at":"2022-06-21T04:00:09.000Z","size":58,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-02T17:28:27.125Z","etag":null,"topics":["discord","discord-bot","discord-java","spring-boot"],"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}},"created_at":"2020-08-02T12:28:35.000Z","updated_at":"2022-11-26T23:53:36.000Z","dependencies_parsed_at":"2022-09-15T17:00:23.626Z","dependency_job_id":null,"html_url":"https://github.com/brandonfl/discord-java-docker-bot","commit_stats":null,"previous_names":[],"tags_count":1,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandonfl%2Fdiscord-java-docker-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandonfl%2Fdiscord-java-docker-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandonfl%2Fdiscord-java-docker-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandonfl%2Fdiscord-java-docker-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brandonfl","download_url":"https://codeload.github.com/brandonfl/discord-java-docker-bot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246068269,"owners_count":20718501,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","discord-java","spring-boot"],"created_at":"2024-12-08T06:12:48.161Z","updated_at":"2025-03-28T16:45:01.969Z","avatar_url":"https://github.com/brandonfl.png","language":"Java","readme":"\n\u003ch1 align=\"center\"\u003e\n  \u003cbr\u003e\nDiscord Java Docker Bot\n  \u003cbr\u003e\n\u003c/h1\u003e\n\u003ch4 align=\"center\"\u003e Template project to create Discord bots with Docker and Java\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/FontanyLegall-Brandon/discord-java-docker-bot/releases\"\u003e\u003cimg src=\"https://img.shields.io/github/v/release/FontanyLegall-Brandon/discord-java-docker-bot\" alt=\"release\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/FontanyLegall-Brandon/discord-java-docker-bot/actions?query=workflow%3Abuild-docker-and-publish\"\u003e\u003cimg src=\"https://github.com/FontanyLegall-Brandon/discord-java-docker-bot/workflows/build-docker-and-publish/badge.svg\" alt=\"github-docker\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/FontanyLegall-Brandon/discord-java-docker-bot/actions?query=workflow%3Asonar-gate\"\u003e\u003cimg src=\"https://github.com/FontanyLegall-Brandon/discord-java-docker-bot/workflows/sonar-gate/badge.svg\" alt=\"github-sonar\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://sonarcloud.io/dashboard?id=FontanyLegall-Brandon_discord-java-docker-bot\"\u003e\u003cimg src=\"https://sonarcloud.io/api/project_badges/measure?project=FontanyLegall-Brandon_discord-java-docker-bot\u0026metric=alert_status\" alt=\"sonar-gate\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/FontanyLegall-Brandon/discord-java-docker-bot/blob/master/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/github/license/FontanyLegall-Brandon/discord-java-docker-bot\" 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\u003c/p\u003e\n\n## How to use\n#### Use with docker-compose\n1. Change \u003ca href=\"#variables\"\u003evariables\u003c/a\u003e in [application.properties](https://github.com/FontanyLegall-Brandon/discord-java-docker-bot/blob/master/src/main/resources/application.properties) file\n\n2. Use command `docker-compose up`\n\n#### Use with docker run\nCommand \n`docker run IMAGE -e BOT_TOKEN=TOKEN ...` \n\nwith `-e` the \u003ca href=\"#variables\"\u003evariables\u003c/a\u003e\n\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| DB_USERNAME | The username used for your database | bot - **required** |\n| DB_PASSWORD | The password used for your database | bot - **required** |\n| DB_HOST | Where your database is hosted | bot-mysql - **required** |\n| DB_PORT | The port of your database | 3306 |\n| DB_NAME | The name of the table | bot - **required** |\n| DB_TIMEZONE | The timezone used | UTC |\n\n## Licence\n\nProject under [MIT](https://github.com/FontanyLegall-Brandon/discord-java-docker-bot/blob/master/LICENSE) licence\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrandonfl%2Fdiscord-java-docker-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrandonfl%2Fdiscord-java-docker-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrandonfl%2Fdiscord-java-docker-bot/lists"}