diff options
| author | mat <github@matdoes.dev> | 2022-11-27 17:51:50 -0600 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-11-27 17:51:50 -0600 |
| commit | 36a11220106c052864235eebf144d4f15531dcb3 (patch) | |
| tree | f0898f3974ec0b56fe5953c8b79fd22cedc67ffe /azalea/examples/echo.rs | |
| parent | 1a2178959d94232e96346a64785e8d8a639ab2b1 (diff) | |
| download | azalea-drasl-36a11220106c052864235eebf144d4f15531dcb3.tar.xz | |
fix some docs/examples
Diffstat (limited to 'azalea/examples/echo.rs')
| -rwxr-xr-x | azalea/examples/echo.rs | 4 |
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?; |
