mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-15 02:22: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 =
|
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;
|
var tagNag = string.Empty;
|
||||||
if (image.TagList.Count == 0)
|
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]";
|
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}";
|
var result = $"[img]{image.Url}[/img]{tagNag}[br]{imageMeta}";
|
||||||
if (tagNag != string.Empty)
|
|
||||||
{
|
|
||||||
result = result.MultilineToTable();
|
|
||||||
}
|
|
||||||
await botInstance.SendChatMessageAsync(result, true, autoDeleteAfter: timeToDeletion);
|
await botInstance.SendChatMessageAsync(result, true, autoDeleteAfter: timeToDeletion);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user