aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xazalea-client/src/chat.rs7
-rw-r--r--azalea/src/swarm/mod.rs4
2 files changed, 8 insertions, 3 deletions
diff --git a/azalea-client/src/chat.rs b/azalea-client/src/chat.rs
index 2988ad6a..97fdde72 100755
--- a/azalea-client/src/chat.rs
+++ b/azalea-client/src/chat.rs
@@ -153,6 +153,9 @@ impl Client {
/// Send a command packet to the server. The `command` argument should not
/// include the slash at the front.
+ ///
+ /// You can also just use [`Client::chat`] and start your message with a `/`
+ /// to send a command.
pub fn send_command_packet(&self, command: &str) {
self.ecs.lock().send_event(SendChatKindEvent {
entity: self.entity,
@@ -165,8 +168,8 @@ impl Client {
/// Send a message in chat.
///
/// ```rust,no_run
- /// # use azalea_client::{Client, Event};
- /// # async fn handle(bot: Client, event: Event) -> anyhow::Result<()> {
+ /// # use azalea_client::Client;
+ /// # async fn example(bot: Client) -> anyhow::Result<()> {
/// bot.chat("Hello, world!");
/// # Ok(())
/// # }
diff --git a/azalea/src/swarm/mod.rs b/azalea/src/swarm/mod.rs
index 2856a1cc..696f751b 100644
--- a/azalea/src/swarm/mod.rs
+++ b/azalea/src/swarm/mod.rs
@@ -19,7 +19,7 @@ use bevy_ecs::{component::Component, entity::Entity, system::Resource, world::Wo
use futures::future::{join_all, BoxFuture};
use parking_lot::{Mutex, RwLock};
use tokio::sync::mpsc;
-use tracing::error;
+use tracing::{debug, error};
use crate::{BoxHandleFn, DefaultBotPlugins, HandleFn, JoinOpts, NoState, StartError};
@@ -362,6 +362,8 @@ where
"There must be exactly one state per bot."
);
+ debug!("Starting Azalea {}", env!("CARGO_PKG_VERSION"));
+
// convert the TryInto<ServerAddress> into a ServerAddress
let address = match address.try_into() {
Ok(address) => address,