Skip to content

Commit

Permalink
Finishing touches
Browse files Browse the repository at this point in the history
  • Loading branch information
GreemDev committed Apr 2, 2021
1 parent 6fcc24d commit 1ba7a18
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Commands/Results/BadRequestResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public override async ValueTask<ResultCompletionData> ExecuteResultAsync(VolteCo
var e = ctx.CreateEmbedBuilder()
.WithTitle("No can do, partner.")
.WithDescription(Reason)
.WithTimestamp(DateTimeOffset.Now);
.WithCurrentTimestamp();
IUserMessage message;
if (shouldReply)
message = await e.ReplyToAsync(ctx.Message);
Expand Down
2 changes: 1 addition & 1 deletion src/Core/VolteBot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public static async Task ShutdownAsync(DiscordShardedClient client, IServiceProv
.WithErrorColor()
.WithAuthor(client.GetOwner())
.WithDescription(
$"Volte {Version.FullVersion} is shutting down {DateTimeOffset.Now.FormatPrettyString()}. I was online for **{Process.GetCurrentProcess().CalculateUptime()}**!")
$"Volte {Version.FullVersion} is shutting down {DateTime.Now.FormatPrettyString()}. I was online for **{Process.GetCurrentProcess().CalculateUptime()}**!")
.SendToAsync(channel);
}

Expand Down
3 changes: 1 addition & 2 deletions src/Services/ModerationService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ public async Task CheckAccountAgeAsync(UserJoinedEventArgs args)
.WithTitle("Possible Malicious User")
.WithThumbnailUrl("https://img.greemdev.net/WWElGbcQHC/3112312312.png")
.AddField("User", args.User.ToString(), true)
.AddField("Account Created",
$"{args.User.CreatedAt.FormatDate()}, at {args.User.CreatedAt.FormatFullTime()}")
.AddField("Account Created", $"{args.User.CreatedAt.FormatPrettyString()}")
.WithFooter($"Account Created {unit.ToQuantity(time)} ago.")
.SendToAsync(c);
}
Expand Down

0 comments on commit 1ba7a18

Please sign in to comment.