feat: add warn

This commit is contained in:
Max batleforc 2024-06-30 19:48:59 +02:00
parent 4bf5646e28
commit 0d0d744e33
No known key found for this signature in database
GPG Key ID: 25D243AB4B6AC9E7

View File

@ -66,7 +66,8 @@ pub async fn period(
};
let schedule = match Schedule::from_str(&cron_schedule) {
Ok(schedule) => schedule,
Err(_) => {
Err(err) => {
warn!(err = err.to_string(), "Cron format is invalid");
let embed = CreateEmbed::new()
.title("Invalid CRON format")
.color(colour::Color::RED)