Now even compiles and runs!
This commit is contained in:
parent
f680c476a6
commit
a24b151b2a
@ -22,6 +22,7 @@ using Configuration = AngleSharp.Configuration;
|
|||||||
using NadekoBot.Attributes;
|
using NadekoBot.Attributes;
|
||||||
using Discord.Commands;
|
using Discord.Commands;
|
||||||
using ImageSharp.Processing.Processors;
|
using ImageSharp.Processing.Processors;
|
||||||
|
using ImageSharp;
|
||||||
|
|
||||||
namespace NadekoBot.Modules.Searches
|
namespace NadekoBot.Modules.Searches
|
||||||
{
|
{
|
||||||
@ -605,7 +606,7 @@ namespace NadekoBot.Modules.Searches
|
|||||||
return;
|
return;
|
||||||
var img = new ImageSharp.Image(50, 50);
|
var img = new ImageSharp.Image(50, 50);
|
||||||
|
|
||||||
img.ApplyProcessor(new BackgroundColorProcessor<ImageSharp.Color>(ImageSharp.Color.FromHex(color)), img.Bounds);
|
img.BackgroundColor(ImageSharp.Color.FromHex(color));
|
||||||
|
|
||||||
await Context.Channel.SendFileAsync(img.ToStream(), $"{color}.png").ConfigureAwait(false);
|
await Context.Channel.SendFileAsync(img.ToStream(), $"{color}.png").ConfigureAwait(false);
|
||||||
}
|
}
|
||||||
|
@ -23,12 +23,8 @@
|
|||||||
"Google.Apis.Urlshortener.v1": "1.19.0.138",
|
"Google.Apis.Urlshortener.v1": "1.19.0.138",
|
||||||
"Google.Apis.YouTube.v3": "1.20.0.701",
|
"Google.Apis.YouTube.v3": "1.20.0.701",
|
||||||
"Google.Apis.Customsearch.v1": "1.20.0.466",
|
"Google.Apis.Customsearch.v1": "1.20.0.466",
|
||||||
"ImageSharp": "1.0.0-alpha2-*",
|
"ImageSharp": "1.0.0-alpha4-00031",
|
||||||
"ImageSharp.Processing": "1.0.0-alpha2-*",
|
"ImageSharp.Drawing": "1.0.0-alpha4-00031",
|
||||||
"ImageSharp.Formats.Png": "1.0.0-alpha2-*",
|
|
||||||
"ImageSharp.Formats.Jpeg": "1.0.0-alpha2-*",
|
|
||||||
"ImageSharp.Drawing": "1.0.0-alpha2-*",
|
|
||||||
"ImageSharp.Drawing.Paths": "1.0.0-alpha2-*",
|
|
||||||
"Microsoft.EntityFrameworkCore": "1.1.0",
|
"Microsoft.EntityFrameworkCore": "1.1.0",
|
||||||
"Microsoft.EntityFrameworkCore.Design": "1.1.0",
|
"Microsoft.EntityFrameworkCore.Design": "1.1.0",
|
||||||
"Microsoft.EntityFrameworkCore.Sqlite": "1.1.0",
|
"Microsoft.EntityFrameworkCore.Sqlite": "1.1.0",
|
||||||
|
Loading…
Reference in New Issue
Block a user