change: .hearthstone command will no longer show text

dev: removed html2markdown as it was only used for a fluff text of the hearthstone command
This commit is contained in:
Kwoth
2024-05-13 19:09:35 +00:00
parent f4b26c5b40
commit 869b9d3b9d
5 changed files with 10 additions and 12 deletions

View File

@@ -1,5 +1,4 @@
#nullable disable
using Html2Markdown;
using NadekoBot.Modules.Searches.Common;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
@@ -370,11 +369,11 @@ public class SearchesService : INService
return null;
if (!string.IsNullOrWhiteSpace(data.Img))
data.Img = await _google.ShortenUrl(data.Img);
if (!string.IsNullOrWhiteSpace(data.Text))
{
var converter = new Converter();
data.Text = converter.Convert(data.Text);
}
// if (!string.IsNullOrWhiteSpace(data.Text))
// {
// var converter = new Converter();
// data.Text = converter.Convert(data.Text);
// }
return data;
}