Refactor staff mode into a seperate crate and make copilot initialization wait for the staff mode flag to be flipped

This commit is contained in:
Mikayla Maki 2023-04-03 20:16:45 -07:00
parent 1627cf7eae
commit 6bfecd7f66
14 changed files with 100 additions and 32 deletions

View file

@ -17,17 +17,6 @@ pub use backtrace::Backtrace;
use futures::Future;
use rand::{seq::SliceRandom, Rng};
#[derive(Debug, Default)]
pub struct StaffMode(pub bool);
impl std::ops::Deref for StaffMode {
type Target = bool;
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[macro_export]
macro_rules! debug_panic {
( $($fmt_arg:tt)* ) => {