@@ -44,14 +44,10 @@ async fn main() {
|
||||
let configuration = Configuration::new("config.json");
|
||||
let configuration_rc = Arc::new(configuration);
|
||||
let mut spam_file = None;
|
||||
/*
|
||||
在傻逼地球村中这个可以忽略了
|
||||
if configuration_rc.username_prefix().len() > 14 {
|
||||
error!("Error: Username prefix should not longer than 14");
|
||||
return;
|
||||
}
|
||||
|
||||
*/
|
||||
if !configuration_rc.clone().spam_file().is_empty() {
|
||||
spam_file = Some(tokio::fs::File::open(configuration_rc.clone().spam_file()).await.unwrap());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user