mirror of
https://github.com/tiffany352/rink-rs
synced 2024-11-10 05:34:14 +00:00
require at least 1 server
This commit is contained in:
parent
b7cd376827
commit
38211e5a24
2 changed files with 6 additions and 1 deletions
|
@ -46,7 +46,7 @@ path = "./currency.json"
|
|||
# https://github.com/aatxe/irc?tab=readme-ov-file#configuring-irc-clients
|
||||
owners = ["Tiffany"]
|
||||
nickname = "rink"
|
||||
realname = "rink-irc-bot"
|
||||
realname = "rinkcalc.app"
|
||||
server = "irc.libera.chat"
|
||||
port = 6697
|
||||
use_tls = true
|
||||
|
|
|
@ -84,6 +84,11 @@ async fn main() {
|
|||
}
|
||||
}
|
||||
|
||||
if config.servers.is_empty() {
|
||||
println!("config.toml doesn't contain any servers");
|
||||
std::process::exit(1);
|
||||
}
|
||||
|
||||
let handles = (0..config.servers.len())
|
||||
.map(|i| server_task(config.clone(), i))
|
||||
.collect::<Vec<_>>();
|
||||
|
|
Loading…
Reference in a new issue