Fix Dockerfile

This commit is contained in:
Jeff 2024-07-05 23:58:50 -04:00
parent 98c30a6014
commit 3f1d08777c
2 changed files with 7 additions and 7 deletions

View File

@ -15,9 +15,9 @@ FROM fedora:40
WORKDIR /app 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/ COPY assets/ assets/
RUN chmod +x group-bot RUN chmod +x trade-bot
CMD ["./group-bot"] CMD ["./trade-bot"]

View File

@ -99,8 +99,8 @@ impl Bot {
self.client.request_character( self.client.request_character(
character_id, character_id,
ViewDistances { ViewDistances {
terrain: 0, terrain: 4,
entity: 0, entity: 4,
}, },
); );
@ -146,9 +146,9 @@ impl Bot {
self.last_action = Instant::now(); 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( self.client.send_command(
"say".to_string(), "region".to_string(),
vec![ vec![
"I'm a bot. Use /say or /tell to give commands: 'buy', 'sell' or 'prices'." "I'm a bot. Use /say or /tell to give commands: 'buy', 'sell' or 'prices'."
.to_string(), .to_string(),