mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-15 02:22:43 -04:00
Use a table to try and deal with the ugly as hell spacing if the tagnag happens
This commit is contained in:
@@ -399,6 +399,12 @@ 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]";
|
||||||
}
|
}
|
||||||
await botInstance.SendChatMessageAsync($"[img]{image.Url}[/img][br]{imageMeta}{tagNag}", true, autoDeleteAfter: timeToDeletion);
|
|
||||||
|
var result = $"[img]{image.Url}[/img][br]{imageMeta}{tagNag}";
|
||||||
|
if (tagNag != string.Empty)
|
||||||
|
{
|
||||||
|
result = result.MultilineToTable();
|
||||||
|
}
|
||||||
|
await botInstance.SendChatMessageAsync(result, true, autoDeleteAfter: timeToDeletion);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user