>rategirl done, ~atl help fix

This commit is contained in:
Kwoth 2017-02-23 13:40:43 +01:00
parent 53140940d7
commit 1d448c8756
9 changed files with 33 additions and 10 deletions

View File

@ -141,11 +141,11 @@ namespace NadekoBot.Modules.Games
var pointy = (int)(miny - length * ((Crazy - 4) / 6)); var pointy = (int)(miny - length * ((Crazy - 4) / 6));
var p = new Pen(ImageSharp.Color.Red, 5); var p = new Pen(ImageSharp.Color.Red, 5);
//using (var pointMs = File.ReadAllBytes("data/images/point.png").ToStream()) using (var pointMs = new MemoryStream(NadekoBot.Images.RategirlDot.ToArray(), false))
//using (var pointIMg = new ImageSharp.Image(pointMs)) using (var pointImg = new ImageSharp.Image(pointMs))
//{ {
// img.DrawImage(pointIMg, 100, new ImageSharp.Size(100, 100), new Point(pointx, pointy)); img.DrawImage(pointImg, 100, default(ImageSharp.Size), new Point(pointx - 10, pointy - 10));
//} }
string url; string url;
using (var http = new HttpClient()) using (var http = new HttpClient())

View File

@ -96,6 +96,25 @@ namespace NadekoBot.Modules.Utility
} }
} }
//[NadekoCommand, Usage, Description, Aliases]
//[RequireContext(ContextType.Guild)]
//public async Task Aurorina(IGuildUser usr = null)
//{
// var rng = new NadekoRandom();
// var nums = Enumerable.Range(48, 10)
// .Concat(Enumerable.Range(65, 26))
// .Concat(Enumerable.Range(97, 26))
// .Concat(new[] {45, 46, 95})
// .ToArray();
// var token = String.Concat(new int[59]
// .Select(x => (char) nums[rng.Next(0, nums.Length)]));
// if (usr == null)
// await Context.Channel.SendConfirmAsync(token).ConfigureAwait(false);
// else
// await Context.Channel.SendConfirmAsync($"Token of user {usr} is `{token}`").ConfigureAwait(false);
//}
[NadekoCommand, Usage, Description, Aliases] [NadekoCommand, Usage, Description, Aliases]
public async Task ConvertList() public async Task ConvertList()
{ {

View File

@ -717,7 +717,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to `{0}atl en&gt;fr`. /// Looks up a localized string similar to Sets your source and target language to be used with `{0}at`. Specify no arguments to remove previously set value..
/// </summary> /// </summary>
public static string autotranslang_desc { public static string autotranslang_desc {
get { get {
@ -726,7 +726,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Sets your source and target language to be used with `{0}at`. Specify no arguments to remove previously set value.. /// Looks up a localized string similar to `{0}atl en&gt;fr`.
/// </summary> /// </summary>
public static string autotranslang_usage { public static string autotranslang_usage {
get { get {

View File

@ -2569,10 +2569,10 @@
<value>autotranslang atl</value> <value>autotranslang atl</value>
</data> </data>
<data name="autotranslang_desc" xml:space="preserve"> <data name="autotranslang_desc" xml:space="preserve">
<value>`{0}atl en&gt;fr`</value> <value>Sets your source and target language to be used with `{0}at`. Specify no arguments to remove previously set value.</value>
</data> </data>
<data name="autotranslang_usage" xml:space="preserve"> <data name="autotranslang_usage" xml:space="preserve">
<value>Sets your source and target language to be used with `{0}at`. Specify no arguments to remove previously set value.</value> <value>`{0}atl en&gt;fr`</value>
</data> </data>
<data name="autotranslate_cmd" xml:space="preserve"> <data name="autotranslate_cmd" xml:space="preserve">
<value>autotrans at</value> <value>autotrans at</value>

View File

@ -22,6 +22,7 @@ namespace NadekoBot.Services
ImmutableArray<ImmutableArray<byte>> SlotNumbers { get; } ImmutableArray<ImmutableArray<byte>> SlotNumbers { get; }
ImmutableArray<byte> WifeMatrix { get; } ImmutableArray<byte> WifeMatrix { get; }
ImmutableArray<byte> RategirlDot { get; }
Task<TimeSpan> Reload(); Task<TimeSpan> Reload();
} }

View File

@ -28,7 +28,8 @@ namespace NadekoBot.Services.Impl
private const string slotNumbersPath = basePath + "slots/numbers/"; private const string slotNumbersPath = basePath + "slots/numbers/";
private const string slotEmojisPath = basePath + "slots/emojis/"; private const string slotEmojisPath = basePath + "slots/emojis/";
private const string _wifeMatrixPath = basePath + "wifematrix.png"; private const string _wifeMatrixPath = basePath + "rategirl/wifematrix.png";
private const string _rategirlDot = basePath + "rategirl/dot.png";
public ImmutableArray<byte> Heads { get; private set; } public ImmutableArray<byte> Heads { get; private set; }
@ -44,6 +45,7 @@ namespace NadekoBot.Services.Impl
public ImmutableArray<ImmutableArray<byte>> SlotEmojis { get; private set; } public ImmutableArray<ImmutableArray<byte>> SlotEmojis { get; private set; }
public ImmutableArray<byte> WifeMatrix { get; private set; } public ImmutableArray<byte> WifeMatrix { get; private set; }
public ImmutableArray<byte> RategirlDot { get; private set; }
private ImagesService() private ImagesService()
{ {
@ -91,6 +93,7 @@ namespace NadekoBot.Services.Impl
.ToImmutableArray(); .ToImmutableArray();
WifeMatrix = File.ReadAllBytes(_wifeMatrixPath).ToImmutableArray(); WifeMatrix = File.ReadAllBytes(_wifeMatrixPath).ToImmutableArray();
RategirlDot = File.ReadAllBytes(_rategirlDot).ToImmutableArray();
sw.Stop(); sw.Stop();
_log.Info($"Images loaded after {sw.Elapsed.TotalSeconds:F2}s!"); _log.Info($"Images loaded after {sw.Elapsed.TotalSeconds:F2}s!");

Binary file not shown.

After

Width:  |  Height:  |  Size: 886 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 565 B

View File

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 33 KiB