Add -yes flag to CheckYesNo (#198)

This commit is contained in:
kittens
2020-07-20 20:10:26 -04:00
committed by GitHub
parent 6054080dc7
commit fd0e46f40d
8 changed files with 21 additions and 24 deletions

View File

@@ -249,8 +249,7 @@ namespace PluralKit.Bot
if (zone == null) throw Errors.InvalidTimeZone(zoneStr);
var currentTime = SystemClock.Instance.GetCurrentInstant().InZone(zone);
var msg = await ctx.Reply(
$"This will change the system time zone to **{zone.Id}**. The current time is **{currentTime.FormatZoned()}**. Is this correct?");
var msg = $"This will change the system time zone to **{zone.Id}**. The current time is **{currentTime.FormatZoned()}**. Is this correct?";
if (!await ctx.PromptYesNo(msg)) throw Errors.TimezoneChangeCancelled;
var patch = new SystemPatch {UiTz = zone.Id};