{"id":26609126,"url":"https://github.com/saseq/jda-newtils","last_synced_at":"2025-09-11T16:46:57.950Z","repository":{"id":276999741,"uuid":"930967610","full_name":"SaseQ/JDA-Newtils","owner":"SaseQ","description":"New tools and utilities for JDA","archived":false,"fork":false,"pushed_at":"2025-02-14T21:10:42.000Z","size":26,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-21T23:48:47.508Z","etag":null,"topics":["api","bot","discord","java","jda","jda-discord-bot","jda-utilities"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SaseQ.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2025-02-11T14:06:22.000Z","updated_at":"2025-03-08T13:00:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"3d9163bb-dd5d-449a-a139-8f54f3321b09","html_url":"https://github.com/SaseQ/JDA-Newtils","commit_stats":null,"previous_names":["saseq/jda-newtils"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/SaseQ/JDA-Newtils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaseQ%2FJDA-Newtils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaseQ%2FJDA-Newtils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaseQ%2FJDA-Newtils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaseQ%2FJDA-Newtils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SaseQ","download_url":"https://codeload.github.com/SaseQ/JDA-Newtils/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaseQ%2FJDA-Newtils/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274672620,"owners_count":25328548,"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","status":"online","status_checked_at":"2025-09-11T02:00:13.660Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["api","bot","discord","java","jda","jda-discord-bot","jda-utilities"],"created_at":"2025-03-24T00:58:30.568Z","updated_at":"2025-09-11T16:46:57.940Z","avatar_url":"https://github.com/SaseQ.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"assets/img/JDA-Newtils_full_logo.svg\" width=\"60%\" alt=\"DeepSeek-V3\" /\u003e\n\u003c/div\u003e\n\u003chr\u003e\n\u003cdiv align=\"center\" style=\"line-height: 1;\"\u003e\n    \u003ca href=\"https://jitpack.io/#SaseQ/JDA-Newtils\" target=\"_blank\" style=\"margin: 2px;\"\u003e\n        \u003cimg alt=\"JitPack version\" src=\"https://jitpack.io/v/SaseQ/JDA-Newtils.svg\" style=\"display: inline-block; vertical-align: middle;\"/\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://discord.gg/5Uvxe5jteM\" target=\"_blank\" style=\"margin: 2px;\"\u003e\n        \u003cimg alt=\"Discord\" src=\"https://img.shields.io/badge/Discord-SaseQcode-7289da?logo=discord\u0026logoColor=white\u0026color=7289da\" style=\"display: inline-block; vertical-align: middle;\"/\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/SaseQ/JDA-Newtils\" style=\"margin: 2px;\"\u003e\n        \u003cimg alt=\"Code size\" src=\"https://img.shields.io/github/languages/code-size/SaseQ/JDA-Newtils\" style=\"display: inline-block; vertical-align: middle;\"/\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/SaseQ/JDA-Newtils/wiki\" style=\"margin: 2px;\"\u003e\n        \u003cimg alt=\"Wiki docs\" src=\"https://img.shields.io/badge/Wiki-Docs-blue.svg\" style=\"display: inline-block; vertical-align: middle;\"/\u003e\n    \u003c/a\u003e\n\u003c/div\u003e\n\n## 📖 Description\n\nJDA-Newtils is a modern series of tools and utilities for use with [JDA](https://github.com/DV8FromTheWorld/JDA) to assist in bot creation.\n\n## 🔬 Installation\n\nYou will need to add this project as a dependency (via Maven or Gradle), as well as [JDA](https://github.com/DV8FromTheWorld/JDA).\n\nThe minimum java version supported by JDA-Newtils is Java SE 11.\n\n[![](https://jitpack.io/v/SaseQ/JDA-Newtils.svg)](https://jitpack.io/#SaseQ/JDA-Newtils)\n\n### Maven\n\n```xml\n\u003crepositories\u003e\n    \u003crepository\u003e\n        \u003cid\u003ejitpack.io\u003c/id\u003e\n        \u003curl\u003ehttps://jitpack.io\u003c/url\u003e\n    \u003c/repository\u003e\n\u003c/repositories\u003e\n```\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.github.SaseQ\u003c/groupId\u003e\n    \u003cartifactId\u003eJDA-Newtils\u003c/artifactId\u003e\n    \u003cversion\u003e$version\u003c/version\u003e \u003c!-- replace $version with the latest version --\u003e\n\u003c/dependency\u003e\n```\n\n### Gradle\n\n```gradle\ndependencyResolutionManagement {\n\trepositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)\n\trepositories {\n\t\tmavenCentral()\n\t\tmaven { url 'https://jitpack.io' }\n\t}\n}\n```\n```gradle\ndependencies {\n    implementation 'com.github.SaseQ:JDA-Newtils:$version' // replace $version with the latest version\n}\n```\n\n## 🏃‍♂️ Getting Started\n\nWe provide a number of [examples]() to introduce you to JDA-Newtils. You can also take a look at our official [Wiki](https://github.com/SaseQ/JDA-Newtils/wiki).\n\nStarting your bot and setup default JDA-Newtils configuration:\n\n```java\npublic static void main(String[] args) {\n    JDA jda = JDABuilder.createDefault(\"$token\") // replace $token your discord bot token\n            .build();\n\n    CommandManager manager = new CommandManager();\n    manager.setOwnerId(\"$owner_id\"); // replace $owner_id with your user discord id\n    manager.setDevGuildId(\"$dev_guild_id\"); // replace $dev_guild_id with your discord server id (remove this line on prod)\n\n    manager.addCommand(new Ping());\n\n    jda.addEventListener(manager);\n}\n```\n\nExample of how to create a ping SlashCommand which we registered earlier in the main function:\n\n```java\npublic class Ping extends SlashCommand {\n\n    public Ping() {\n        this.name = \"ping\";\n        this.description = \"Performs a ping to see the bot's delay\";\n    }\n\n    @Override\n    public void execute(@NonNull SlashCommandInteractionEvent event) {\n        event.reply(\"Ping: ...\").queue(m -\u003e \n            m.editOriginal(\"Pong! \" + event.getJDA().getGatewayPing() + \"ms\").queue()\n        );\n    }\n}\n```\n\nA more detailed examples with other JDA-Newtils tools can be found in the [Wiki](https://github.com/SaseQ/JDA-Newtils/wiki).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaseq%2Fjda-newtils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaseq%2Fjda-newtils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaseq%2Fjda-newtils/lists"}