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(),