aboutsummaryrefslogtreecommitdiff
path: root/azalea/examples/echo.rs
diff options
context:
space:
mode:
Diffstat (limited to 'azalea/examples/echo.rs')
-rwxr-xr-xazalea/examples/echo.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea/examples/echo.rs b/azalea/examples/echo.rs
index 5f6cf072..2093ff4e 100755
--- a/azalea/examples/echo.rs
+++ b/azalea/examples/echo.rs
@@ -21,11 +21,11 @@ async fn main() {
#[derive(Default, Clone)]
pub struct State {}
-async fn handle(bot: Client, event: Event, state: State) -> anyhow::Result<()> {
+async fn handle(bot: Client, event: Event, _state: State) -> anyhow::Result<()> {
match event {
Event::Chat(m) => {
if let (Some(sender), content) = m.split_sender_and_content() {
- if sender == bot.game_profile.name {
+ if sender == bot.profile.name {
return Ok(()); // ignore our own messages
}
bot.chat(&content).await?;