Crates.io | guild |
lib.rs | guild |
version | 0.2.1 |
source | src |
created_at | 2021-01-03 02:03:34.717027 |
updated_at | 2021-03-02 16:11:55.789869 |
description | Guild is a Command Line Interface build with Rust that posts code snippets to a Discord channel using Webhooks. |
homepage | https://github.com/jakecorrenti/guild |
repository | https://github.com/jakecorrenti/guild |
max_upload_size | |
id | 330828 |
size | 49,062 |
Guild is a Command Line Utility that allows you to post code snippets from a file to a Discord channel.
By utilizing Serentiy 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.
In 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 and follow the instructions.
Once Rust is installed on your machine, you must install guild through Cargo:
cargo install guild
guild set <webhook url>
guild post <file path> <starting line> <ending line>
guild post <file path> <starting line> <ending line> -H
or
guild post <file path> <starting line> <ending line> --highlight
guild post main.c 1 5 -H
set
: Set the Discord Webhook URLpost
: Post a code snippet to the set Discord channelhelp
: See the possible commands and flags that are supported by guildhighlight
: Enable syntax highlighting for the code snippet