Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
cablehead committed Jun 26, 2024
1 parent 8e4763d commit b9e67a0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ struct Args {
/// Enables a HTTP endpoint. Address to listen on [HOST]:PORT or <PATH> for Unix domain socket
#[clap(long, value_parser, value_name = "LISTEN_ADDR")]
http: Option<String>,

/// Enable discord websocket (temporary)
#[clap(long)]
ws: bool,
}

#[tokio::main]
Expand All @@ -28,7 +32,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
});
}

{
if args.ws {
let store = store.clone();
tokio::spawn(async move {
loop {
Expand Down

0 comments on commit b9e67a0

Please sign in to comment.