Add even more polish
This commit is contained in:
parent
88e60a2057
commit
6cd9d71b49
@ -20,4 +20,4 @@ COPY assets/ assets/
|
||||
|
||||
RUN chmod +x trade-bot
|
||||
|
||||
CMD ["./trade-bot"]
|
||||
ENTRYPOINT ["./trade-bot"]
|
||||
|
@ -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();
|
||||
|
@ -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")
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user