From b03d2942e1bef98e13acadde5cbb8856a3f8c74d Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 19 Mar 2026 04:12:20 -0100 Subject: implement speed effect --- azalea/examples/testbot/commands/debug.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'azalea/examples/testbot/commands/debug.rs') diff --git a/azalea/examples/testbot/commands/debug.rs b/azalea/examples/testbot/commands/debug.rs index 12f6d362..cd487abb 100644 --- a/azalea/examples/testbot/commands/debug.rs +++ b/azalea/examples/testbot/commands/debug.rs @@ -29,6 +29,14 @@ pub fn register(commands: &mut CommandDispatcher>) { source.reply("pong!"); 1 })); + commands.register( + literal("say").then(argument("message", greedy_string()).executes(|ctx: &Ctx| { + let source = ctx.source.lock(); + let message = get_string(ctx, "message").unwrap(); + source.bot.chat(message); + 1 + })), + ); commands.register(literal("disconnect").executes(|ctx: &Ctx| { let source = ctx.source.lock(); -- cgit v1.2.3