From a5d44de5c4cac9d266b7f24784c53e5e667b0991 Mon Sep 17 00:00:00 2001 From: Ashelyn Rose Date: Mon, 7 Oct 2024 21:40:31 -0600 Subject: Handle case where system has no members --- src/system/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/system/mod.rs') diff --git a/src/system/mod.rs b/src/system/mod.rs index d993731..44c6da8 100644 --- a/src/system/mod.rs +++ b/src/system/mod.rs @@ -82,6 +82,10 @@ impl Manager { self.start_bot(member_id).await; } + if self.config.members.len() < 1 { + println!("WARNING: System {} has no configured members", &self.name); + } + loop { match system_receiver.recv().await { Some(SystemEvent::GatewayConnected(member_id, user_id)) => { -- cgit 1.4.1