feat: add basic logging

This commit is contained in:
2025-02-15 20:05:12 -05:00
parent 4fa508ec81
commit a937db0be6
6 changed files with 48 additions and 8 deletions

View File

@@ -1,5 +1,6 @@
use crate::{State, commands::CommandSource, scripting};
use azalea::prelude::*;
use log::info;
use mlua::Function;
pub async fn handle_event(client: Client, event: Event, state: State) -> anyhow::Result<()> {
@@ -7,7 +8,7 @@ pub async fn handle_event(client: Client, event: Event, state: State) -> anyhow:
match event {
Event::Chat(message) => {
println!("{}", message.message().to_ansi());
info!("{}", message.message().to_ansi());
let owners = globals.get::<Vec<String>>("OWNERS")?;
if message.is_whisper()