aboutsummaryrefslogtreecommitdiff
path: root/bot/src/main.rs
diff options
context:
space:
mode:
authormat <27899617+mat-1@users.noreply.github.com>2022-10-23 19:00:24 -0500
committerGitHub <noreply@github.com>2022-10-23 19:00:24 -0500
commit65da123631b0a2dc078786f60fa6b213e8b430ee (patch)
tree8854f29c4240d36bec1710ebc2293a488c495d3d /bot/src/main.rs
parent587001724acf8a7c6de30927da31c1f5fd7fdb09 (diff)
downloadazalea-drasl-65da123631b0a2dc078786f60fa6b213e8b430ee.tar.xz
Add Client::set_client_information (#33)
* start adding options * add default options * send options packet by default * mention set_options in Client::join doc * make TranslatableComponent::read return TextComponent * change set_options to set_client_information * clean up some code * Add `Initialize` event * fix some clippy warnings * change `Client::options` to `client_information`
Diffstat (limited to 'bot/src/main.rs')
-rw-r--r--bot/src/main.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/bot/src/main.rs b/bot/src/main.rs
index 9f8bd0c8..e4543b6a 100644
--- a/bot/src/main.rs
+++ b/bot/src/main.rs
@@ -28,6 +28,9 @@ async fn handle(bot: Client, event: Event, _state: State) -> anyhow::Result<()>
Event::Login => {
bot.chat("Hello world").await?;
}
+ Event::Initialize => {
+ println!("initialized");
+ }
Event::Tick => {
bot.jump();
}