From 3f1d08777cd39d96c1f1582314a5c43f4e3fe015 Mon Sep 17 00:00:00 2001 From: Jeff Date: Fri, 5 Jul 2024 23:58:50 -0400 Subject: [PATCH] Fix Dockerfile --- Dockerfile | 6 +++--- src/bot.rs | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 742e795..eb6d580 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,9 +15,9 @@ FROM fedora:40 WORKDIR /app -COPY --from=build /app/target/release/group-bot group-bot +COPY --from=build /app/target/release/trade-bot trade-bot COPY assets/ assets/ -RUN chmod +x group-bot +RUN chmod +x trade-bot -CMD ["./group-bot"] +CMD ["./trade-bot"] diff --git a/src/bot.rs b/src/bot.rs index 63b4a54..4e5f0cc 100644 --- a/src/bot.rs +++ b/src/bot.rs @@ -99,8 +99,8 @@ impl Bot { self.client.request_character( character_id, ViewDistances { - terrain: 0, - entity: 0, + terrain: 4, + entity: 4, }, ); @@ -146,9 +146,9 @@ impl Bot { self.last_action = Instant::now(); } - if self.last_announcement.elapsed() > Duration::from_secs(1800) { + if self.last_announcement.elapsed() > Duration::from_secs(600) { self.client.send_command( - "say".to_string(), + "region".to_string(), vec![ "I'm a bot. Use /say or /tell to give commands: 'buy', 'sell' or 'prices'." .to_string(),