{"id":49885878,"url":"https://github.com/meyer1994/camel-discord","last_synced_at":"2026-05-15T18:15:28.851Z","repository":{"id":39920909,"uuid":"441003619","full_name":"meyer1994/camel-discord","owner":"meyer1994","description":"An Apache Camel Discord component","archived":false,"fork":false,"pushed_at":"2024-01-15T21:45:55.000Z","size":48,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-01-16T03:17:15.413Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/meyer1994.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}},"created_at":"2021-12-22T22:53:54.000Z","updated_at":"2022-01-10T22:22:12.000Z","dependencies_parsed_at":"2023-02-10T12:16:58.233Z","dependency_job_id":"c3e895b0-0f8a-4219-bbde-ac7ce5d720e6","html_url":"https://github.com/meyer1994/camel-discord","commit_stats":null,"previous_names":[],"tags_count":3,"template":null,"template_full_name":null,"purl":"pkg:github/meyer1994/camel-discord","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meyer1994%2Fcamel-discord","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meyer1994%2Fcamel-discord/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meyer1994%2Fcamel-discord/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meyer1994%2Fcamel-discord/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/meyer1994","download_url":"https://codeload.github.com/meyer1994/camel-discord/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meyer1994%2Fcamel-discord/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33074575,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T11:35:32.926Z","status":"ssl_error","status_checked_at":"2026-05-15T11:35:31.362Z","response_time":103,"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":[],"created_at":"2026-05-15T18:15:28.210Z","updated_at":"2026-05-15T18:15:28.825Z","avatar_url":"https://github.com/meyer1994.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Camel Discord Component\n\n[![build](https://github.com/meyer1994/camel-discord/actions/workflows/build.yml/badge.svg)](https://github.com/meyer1994/camel-discord/actions/workflows/build.yml)\n[![standard-readme compliant](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n\nThis was way harder to do than it should have been\n\n## Table of Contents\n\n- [About](#about)\n- [Install](#install)\n- [Usage](#usage)\n- [Thanks](#thanks)\n\n## About\n\nOnce I wanted to create a Discord bot that could be used as an interface to \nmany other things. Reboot an EC2 instance on AWS, send an e-mail, etc. \n\n[Apache Camel][1] is an integrations library. Adding a Discord component to it \nmakes Discord very powerful. This is my attempt on creating a component.\n\n## Install\n\nTo build this project use\n\n```sh \n$ mvn install\n```\n\n### Gradle\n\n```groovy\nallprojects {\n    repositories {\n        ...\n        maven { url 'https://jitpack.io' }\n    }\n}\n\ndependencies {\n        implementation 'com.github.meyer1994:camel-discord:0.0.2'\n}\n```\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\u003cdependency\u003e\n    \u003cgroupId\u003ecom.github.meyer1994\u003c/groupId\u003e\n    \u003cartifactId\u003ecamel-discord\u003c/artifactId\u003e\n    \u003cversion\u003e0.0.2\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## Usage\n\nYou only need to define a `@Bean`, or use the Camel's `@BindToRegistry` \nannotation, to be autowired into the component:\n\n```java\n@Bean  // Or @BindToRegistry\npublic JDA jda() throws LoginException {\n    return JDABuilder.createDefault(\"YOUR_DISCORD_BOT_TOKEN\")\n            .enableIntents(GatewayIntent.MESSAGE_CONTENT)\n            .build();\n}\n```\n\nAnd now you can use the `discord` route. The example below shows a simple \n_ping pong_ bot.\n\n```java\nfrom(\"discord:ping\")\n        .filter().simple(\"${body.contentRaw} == '!ping'\")\n        .transform().constant(\"Pong!\")\n        .to(\"discord:pong\");\n```\n\n## Thanks\n\n[AWS'][2] components. It served a very useful learning resource;\n    \n[1]: https://camel.apache.org/\n[2]: https://github.com/apache/camel/tree/main/components/camel-aws","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeyer1994%2Fcamel-discord","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeyer1994%2Fcamel-discord","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeyer1994%2Fcamel-discord/lists"}