{"id":18500488,"url":"https://github.com/jakecorrenti/guild","last_synced_at":"2026-05-03T05:40:26.705Z","repository":{"id":55283650,"uuid":"325114439","full_name":"jakecorrenti/guild","owner":"jakecorrenti","description":"Command Line Utility that posts code snippets from a file to a Discord channel","archived":false,"fork":false,"pushed_at":"2021-03-02T16:10:30.000Z","size":335898,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-29T09:51:58.327Z","etag":null,"topics":["cli","discord","discord-bot","guild","rust","rust-lang","webhooks"],"latest_commit_sha":null,"homepage":"https://jakecorrenti.github.io/guild/","language":"Rust","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/jakecorrenti.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-12-28T20:52:27.000Z","updated_at":"2023-02-17T00:47:53.000Z","dependencies_parsed_at":"2022-08-14T19:20:51.224Z","dependency_job_id":null,"html_url":"https://github.com/jakecorrenti/guild","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakecorrenti%2Fguild","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakecorrenti%2Fguild/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakecorrenti%2Fguild/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakecorrenti%2Fguild/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jakecorrenti","download_url":"https://codeload.github.com/jakecorrenti/guild/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254084769,"owners_count":22011942,"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":["cli","discord","discord-bot","guild","rust","rust-lang","webhooks"],"created_at":"2024-11-06T13:49:50.926Z","updated_at":"2026-05-03T05:40:21.673Z","avatar_url":"https://github.com/jakecorrenti.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# guild\n\nGuild is a Command Line Utility that allows you to post code snippets from a file to a Discord channel.\n\n# How does it work?\n\nBy utilizing [Serentiy](https://www.github.com/serenity-rs/serenity) to access the Discord API, guild communicates with your Discord server using Webhooks. This allows guild to post a message to Discord on its own without having to type anything into Discord itself.\n\n# Download\n\n## Install Rust\n\nIn order to download guild, you need to have Rust downloaded on your computer if you don't already. To install Rust, go to the [Rust website](https://www.rust-lang.org/tools/install) and follow the instructions.\n\n## Install guild\n\nOnce Rust is installed on your machine, you must install guild through Cargo: \n```bash\ncargo install guild\n```\n\n# Usage\n\n1. Create a [Discord Webhook](https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks) in the desired server\n2. Copy the Discord Webhook URL and execute the following command in your terminal\n    ```bash\n    guild set \u003cwebhook url\u003e\n    ```\n3. Post your desired code snippet to the Discord server: \n    ```bash\n    guild post \u003cfile path\u003e \u003cstarting line\u003e \u003cending line\u003e\n    ```\n    - If you would like the code snippet to have syntax highlighting, add the following flag at the end of your command:\n        ```bash\n        guild post \u003cfile path\u003e \u003cstarting line\u003e \u003cending line\u003e -H\n        ```\n        or \n        ```bash\n        guild post \u003cfile path\u003e \u003cstarting line\u003e \u003cending line\u003e --highlight\n        ```\n    - Example:\n        ```bash\n        guild post main.c 1 5 -H\n        ```\n## Commands\n- `set`: Set the Discord Webhook URL\n- `post`: Post a code snippet to the set Discord channel\n## Flags\n- `help`: See the possible commands and flags that are supported by guild\n- `highlight`: Enable syntax highlighting for the code snippet\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakecorrenti%2Fguild","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjakecorrenti%2Fguild","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakecorrenti%2Fguild/lists"}