mirror of
https://github.com/NoiTheCat/BirthdayBot.git
synced 2024-11-24 17:34:13 +00:00
Compare commits
2 commits
a15b5fd6cf
...
95e9e2b558
Author | SHA1 | Date | |
---|---|---|---|
95e9e2b558 | |||
8c6350c098 |
1 changed files with 6 additions and 2 deletions
|
@ -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)]
|
||||
|
|
Loading…
Reference in a new issue