Merge pull request #64 from NoiTheCat/dev/tzreminder

Add timezone set reminder (#61)
This commit is contained in:
Noi 2024-07-09 12:29:04 -07:00 committed by GitHub
commit 95e9e2b558
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -54,8 +54,12 @@ public class BirthdayModule : BotModuleBase {
return; return;
} }
await RespondAsync($":white_check_mark: Your birthday has been set to **{FormatDate(inmonth, inday)}**" + var response = $":white_check_mark: Your birthday has been set to **{FormatDate(inmonth, inday)}**";
(inzone == null ? "" : $" at time zone **{inzone}**") + ".").ConfigureAwait(false); 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)] [SlashCommand("timezone", HelpCmdSetZone)]