refactor: create presence crate and add tests

This commit is contained in:
Paul Makles
2023-04-22 20:01:23 +01:00
parent c817c2dd40
commit 12d963d2bd
15 changed files with 136 additions and 88 deletions

View File

@@ -1,7 +1,7 @@
use std::env;
use async_std::net::TcpListener;
use revolt_quark::presence::presence_clear_region;
use revolt_presence::clear_region;
#[macro_use]
extern crate log;
@@ -18,7 +18,7 @@ async fn main() {
database::connect().await;
// Clean up the current region information.
presence_clear_region(None).await;
clear_region(None).await;
// Setup a TCP listener to accept WebSocket connections on.
// By default, we bind to port 9000 on all interfaces.