From 8c6350c098ead90c1faf28a27d77bb837efd8dd9 Mon Sep 17 00:00:00 2001 From: Noi Date: Sat, 6 Jul 2024 17:23:23 -0700 Subject: [PATCH] Add timezone set reminder (#61) Awaiting feedback; message may be changed. --- ApplicationCommands/BirthdayModule.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ApplicationCommands/BirthdayModule.cs b/ApplicationCommands/BirthdayModule.cs index 2f5f670..6434d8e 100644 --- a/ApplicationCommands/BirthdayModule.cs +++ b/ApplicationCommands/BirthdayModule.cs @@ -54,8 +54,12 @@ public class BirthdayModule : BotModuleBase { return; } - await RespondAsync($":white_check_mark: Your birthday has been set to **{FormatDate(inmonth, inday)}**" + - (inzone == null ? "" : $" at time zone **{inzone}**") + ".").ConfigureAwait(false); + var response = $":white_check_mark: Your birthday has been set to **{FormatDate(inmonth, inday)}**"; + if (inzone != null) response += $" at time zone **{inzone}**"; + response += "."; + if (user.TimeZone == null) + response += "\n(Tip: The `/birthday set timezone` command ensures your birthday is recognized just in time!)"; + await RespondAsync(response).ConfigureAwait(false); } [SlashCommand("timezone", HelpCmdSetZone)]