{"id":26784780,"url":"https://github.com/benjaminurquhart/cio","last_synced_at":"2026-05-01T09:32:45.065Z","repository":{"id":91749807,"uuid":"152366540","full_name":"BenjaminUrquhart/CIO","owner":"BenjaminUrquhart","description":"Input/Output stream wrapper for JDA Channel objects","archived":false,"fork":false,"pushed_at":"2019-10-23T18:02:39.000Z","size":114,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-29T10:32:22.834Z","etag":null,"topics":["cio","cis","cos","discord","java","java-8","java-io","jda","jda-extension","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/BenjaminUrquhart.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}},"created_at":"2018-10-10T05:12:58.000Z","updated_at":"2025-02-19T18:03:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"15fa4a46-2e98-4844-beb8-4ad05335d5fb","html_url":"https://github.com/BenjaminUrquhart/CIO","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/BenjaminUrquhart/CIO","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenjaminUrquhart%2FCIO","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenjaminUrquhart%2FCIO/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenjaminUrquhart%2FCIO/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenjaminUrquhart%2FCIO/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BenjaminUrquhart","download_url":"https://codeload.github.com/BenjaminUrquhart/CIO/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenjaminUrquhart%2FCIO/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32492207,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":["cio","cis","cos","discord","java","java-8","java-io","jda","jda-extension","jda-utilities"],"created_at":"2025-03-29T10:29:35.091Z","updated_at":"2026-05-01T09:32:45.058Z","avatar_url":"https://github.com/BenjaminUrquhart.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CIO\nInput/Output Stream wrapper for JDA Channel objects\n\nFair warning: for some reason this does not work with the `java.util.Scanner` class.\n\nInputStream:\n- TextChannel: Working\n- MessageChannel: Support Dropped\n- PrivateChannel: Support Dropped\n- VoiceChannel: NOT Working. Not sure if it's Discord audio being funky again.\n\nOutputStream:\n- TextChannel: Working\n- MessageChannel: Working\n- PrivateChannel: Support Dropped\n- VoiceChannel: Untested\n\nI should probably have read the [InputStream docs](https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html) first before making this :^)\n\n# Example usage:\n```java\n//Let's say you have a TextChannel from an onGuildMessageReceivedEvent.\nChannelInputStream input = new ChannelInputStream(event.getChannel(), true); //The boolean toggles ignoring bots.\nChannelOutputStream output = new ChannelOutputStream(event.getChannel());\n//Let's write something to the stream\noutput.write(\"Hello there!\".getBytes());\noutput.flush(); //This actually sends the message. It is automatically called when the buffer length reaches 2000 characters.\n//Let's read the next message\nString msg = (char)input.read() + \"\";\nwhile(input.hasNext()){\n  msg += (char)input.read();\n}\nSystem.out.println(msg);\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenjaminurquhart%2Fcio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenjaminurquhart%2Fcio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenjaminurquhart%2Fcio/lists"}