Skip to content

Commit

Permalink
Added a newline after the author of a tag
Browse files Browse the repository at this point in the history
  • Loading branch information
CPULL committed Jun 26, 2022
1 parent 5bfda53 commit c5f3ecc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion UPBot Code/Commands/Tag.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ public async Task TagCommand(InteractionContext ctx, [Option("tagname", "Tag to
if (tag.Alias3 != null) descr += $"Aliases: _**{CleanName(tag.Alias1)}**_, _**{CleanName(tag.Alias2)}**_, _**{CleanName(tag.Alias3)}**_\n";
else if (tag.Alias2 != null) descr += $"Aliases: _**{CleanName(tag.Alias1)}**_, _**{CleanName(tag.Alias2)}**_\n";
else if (tag.Alias1 != null) descr += $"Alias: _**{CleanName(tag.Alias1)}**_\n";
descr += $"Author: **{tag.Author}**\n";
if (!string.IsNullOrWhiteSpace(tag.Author))
descr += $"Author: **{tag.Author}**\n\n";
descr += tag.Information;
await ctx.CreateResponseAsync(builder.WithDescription(descr));
}
Expand Down
2 changes: 1 addition & 1 deletion UPBot Code/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ private class LogInfo {
readonly private static Dictionary<string, LogInfo> logs = new();

public static string GetVersion() {
return vmajor + "." + vminor + "." + vbuild + vrev + " - 2022/06/21";
return vmajor + "." + vminor + "." + vbuild + vrev + " - 2022/06/26";
}

public static DiscordClient GetClient() {
Expand Down

0 comments on commit c5f3ecc

Please sign in to comment.