Add even more polish

This commit is contained in:
Jeff 2024-07-08 22:01:07 -04:00
parent 88e60a2057
commit 6cd9d71b49
4 changed files with 4 additions and 3 deletions

View File

@ -20,4 +20,4 @@ COPY assets/ assets/
RUN chmod +x trade-bot
CMD ["./trade-bot"]
ENTRYPOINT ["./trade-bot"]

View File

@ -135,7 +135,7 @@ impl Bot {
if self.last_announcement.elapsed() > Duration::from_secs(1200) {
self.client.send_command(
"region".to_string(),
vec!["I'm a bot. You can trade with me or use /say or /tell to check prices: 'price [item_name]'.".to_string()],
vec!["I'm a bot. You can trade with me or use /say or /tell to check prices: 'price [item_name]' or 'prices'.".to_string()],
);
self.last_announcement = Instant::now();

View File

@ -39,7 +39,8 @@ fn main() {
let config_path = args()
.nth(1)
.expect("Pass an argument specifying the config file");
let file_content = read_to_string(config_path).expect("Failed to read config");
let file_content =
read_to_string(&config_path).expect(&format!("Failed to read config at {config_path}"));
toml::from_str::<Config>(&file_content).expect("Failed to parse secrets")
};