>rategirl done, ~atl help fix
This commit is contained in:
parent
53140940d7
commit
1d448c8756
@ -141,11 +141,11 @@ namespace NadekoBot.Modules.Games
|
||||
var pointy = (int)(miny - length * ((Crazy - 4) / 6));
|
||||
|
||||
var p = new Pen(ImageSharp.Color.Red, 5);
|
||||
//using (var pointMs = File.ReadAllBytes("data/images/point.png").ToStream())
|
||||
//using (var pointIMg = new ImageSharp.Image(pointMs))
|
||||
//{
|
||||
// img.DrawImage(pointIMg, 100, new ImageSharp.Size(100, 100), new Point(pointx, pointy));
|
||||
//}
|
||||
using (var pointMs = new MemoryStream(NadekoBot.Images.RategirlDot.ToArray(), false))
|
||||
using (var pointImg = new ImageSharp.Image(pointMs))
|
||||
{
|
||||
img.DrawImage(pointImg, 100, default(ImageSharp.Size), new Point(pointx - 10, pointy - 10));
|
||||
}
|
||||
|
||||
string url;
|
||||
using (var http = new HttpClient())
|
||||
|
@ -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]
|
||||
public async Task ConvertList()
|
||||
{
|
||||
|
@ -717,7 +717,7 @@ namespace NadekoBot.Resources {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to `{0}atl en>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>
|
||||
public static string autotranslang_desc {
|
||||
get {
|
||||
@ -726,7 +726,7 @@ namespace NadekoBot.Resources {
|
||||
}
|
||||
|
||||
/// <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>fr`.
|
||||
/// </summary>
|
||||
public static string autotranslang_usage {
|
||||
get {
|
||||
|
@ -2569,10 +2569,10 @@
|
||||
<value>autotranslang atl</value>
|
||||
</data>
|
||||
<data name="autotranslang_desc" xml:space="preserve">
|
||||
<value>`{0}atl en>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 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>fr`</value>
|
||||
</data>
|
||||
<data name="autotranslate_cmd" xml:space="preserve">
|
||||
<value>autotrans at</value>
|
||||
|
@ -22,6 +22,7 @@ namespace NadekoBot.Services
|
||||
ImmutableArray<ImmutableArray<byte>> SlotNumbers { get; }
|
||||
|
||||
ImmutableArray<byte> WifeMatrix { get; }
|
||||
ImmutableArray<byte> RategirlDot { get; }
|
||||
|
||||
Task<TimeSpan> Reload();
|
||||
}
|
||||
|
@ -28,7 +28,8 @@ namespace NadekoBot.Services.Impl
|
||||
private const string slotNumbersPath = basePath + "slots/numbers/";
|
||||
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; }
|
||||
@ -44,6 +45,7 @@ namespace NadekoBot.Services.Impl
|
||||
public ImmutableArray<ImmutableArray<byte>> SlotEmojis { get; private set; }
|
||||
|
||||
public ImmutableArray<byte> WifeMatrix { get; private set; }
|
||||
public ImmutableArray<byte> RategirlDot { get; private set; }
|
||||
|
||||
private ImagesService()
|
||||
{
|
||||
@ -91,6 +93,7 @@ namespace NadekoBot.Services.Impl
|
||||
.ToImmutableArray();
|
||||
|
||||
WifeMatrix = File.ReadAllBytes(_wifeMatrixPath).ToImmutableArray();
|
||||
RategirlDot = File.ReadAllBytes(_rategirlDot).ToImmutableArray();
|
||||
|
||||
sw.Stop();
|
||||
_log.Info($"Images loaded after {sw.Elapsed.TotalSeconds:F2}s!");
|
||||
|
BIN
src/NadekoBot/data/images/rategirl/dot - Copy.png
Normal file
BIN
src/NadekoBot/data/images/rategirl/dot - Copy.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 886 B |
BIN
src/NadekoBot/data/images/rategirl/dot.png
Normal file
BIN
src/NadekoBot/data/images/rategirl/dot.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 565 B |
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 33 KiB |
Loading…
Reference in New Issue
Block a user