feat: Notifications should be in DMs.

This commit is contained in:
Soph :3 2025-09-14 18:42:04 +03:00
parent b42a848063
commit ba43a49b9c
2 changed files with 8 additions and 5 deletions

View file

@ -372,10 +372,13 @@ impl Command for FarmCommand {
.await; .await;
notification_client notification_client
.message(format!( .dm(
"🌾 Hey, @{} your {} is ready! You got {} {} x{}", format!(
user_id, crop_type.name, stars, fruit.name, total_count "🌾 Your {} is ready! You got {} {} x{}",
)) crop_type.name, stars, fruit.name, total_count
),
user_id,
)
.await; .await;
} }
} }

View file

@ -409,7 +409,7 @@ impl Command for FishCommand {
tokio::spawn(async move { tokio::spawn(async move {
tokio::time::sleep(std::time::Duration::from_secs(timeout_secs as u64)).await; tokio::time::sleep(std::time::Duration::from_secs(timeout_secs as u64)).await;
client_clone client_clone
.message(format!("🎣 @{} can fish again now!", player._id)) .dm(format!("🎣 You can fish again now!"), player._id)
.await; .await;
}); });
} }