mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-14 18:12:43 -04:00
Moved the tagnag to before the meta and removed the grid to table. It did work but was still spaced a little ugly. Having the spoiler last should fix spacing issues
This commit is contained in:
@@ -392,7 +392,7 @@ public class GetRandomImage : ICommand
|
||||
}
|
||||
|
||||
var imageMeta =
|
||||
$"[size=75][spoiler=\"Image Info\"][heading=1]ID: {image.Id}; Tags: {image.TagList.Humanize()}; Added By: {addedBy}; Date Added: {whenAdded}[/heading][/spoiler][/size]";
|
||||
$"[size=60][spoiler=\"Image Info\"][heading=1]ID: {image.Id}; Tags: {image.TagList.Humanize()}; Added By: {addedBy}; Date Added: {whenAdded}[/heading][/spoiler][/size]";
|
||||
|
||||
var tagNag = string.Empty;
|
||||
if (image.TagList.Count == 0)
|
||||
@@ -400,11 +400,7 @@ public class GetRandomImage : ICommand
|
||||
tagNag = $"[br]This image has no tags. You can add some using [ditto]!images tag {image.Id}[/ditto]";
|
||||
}
|
||||
|
||||
var result = $"[img]{image.Url}[/img][br]{imageMeta}{tagNag}";
|
||||
if (tagNag != string.Empty)
|
||||
{
|
||||
result = result.MultilineToTable();
|
||||
}
|
||||
var result = $"[img]{image.Url}[/img]{tagNag}[br]{imageMeta}";
|
||||
await botInstance.SendChatMessageAsync(result, true, autoDeleteAfter: timeToDeletion);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user