mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-10 17:28:27 -04:00
Removed slot.numbers from images.yml as they're no longer used anywhere, thx ala
This commit is contained in:
@@ -6,7 +6,7 @@ namespace NadekoBot.Common
|
||||
public class ImageUrls
|
||||
{
|
||||
[Comment("DO NOT CHANGE")]
|
||||
public int Version { get; set; } = 2;
|
||||
public int Version { get; set; } = 3;
|
||||
|
||||
public CoinData Coins { get; set; }
|
||||
public Uri[] Currency { get; set; }
|
||||
@@ -27,7 +27,6 @@ namespace NadekoBot.Common
|
||||
public class SlotData
|
||||
{
|
||||
public Uri[] Emojis { get; set; }
|
||||
public Uri[] Numbers { get; set; }
|
||||
public Uri Bg { get; set; }
|
||||
}
|
||||
|
||||
|
@@ -14,7 +14,6 @@ namespace NadekoBot.Services
|
||||
IReadOnlyList<byte[]> Dice { get; }
|
||||
|
||||
IReadOnlyList<byte[]> SlotEmojis { get; }
|
||||
IReadOnlyList<byte[]> SlotNumbers { get; }
|
||||
IReadOnlyList<byte[]> Currency { get; }
|
||||
|
||||
byte[] SlotBackground { get; }
|
||||
|
@@ -36,7 +36,6 @@ namespace NadekoBot.Services
|
||||
Dice,
|
||||
SlotBg,
|
||||
SlotEmojis,
|
||||
SlotNumbers,
|
||||
Currency,
|
||||
RategirlMatrix,
|
||||
RategirlDot,
|
||||
@@ -57,9 +56,6 @@ namespace NadekoBot.Services
|
||||
public IReadOnlyList<byte[]> SlotEmojis
|
||||
=> GetByteArrayData(ImageKeys.SlotEmojis);
|
||||
|
||||
public IReadOnlyList<byte[]> SlotNumbers
|
||||
=> GetByteArrayData(ImageKeys.SlotNumbers);
|
||||
|
||||
public IReadOnlyList<byte[]> Currency
|
||||
=> GetByteArrayData(ImageKeys.Currency);
|
||||
|
||||
@@ -157,20 +153,7 @@ namespace NadekoBot.Services
|
||||
"https://cdn.nadeko.bot/slots/3.png",
|
||||
"https://cdn.nadeko.bot/slots/4.png",
|
||||
"https://cdn.nadeko.bot/slots/5.png"
|
||||
}.Map(x => new Uri(x)),
|
||||
Numbers = new[]
|
||||
{
|
||||
"https://cdn.nadeko.bot/other/slots/numbers/0.png",
|
||||
"https://cdn.nadeko.bot/other/slots/numbers/1.png",
|
||||
"https://cdn.nadeko.bot/other/slots/numbers/2.png",
|
||||
"https://cdn.nadeko.bot/other/slots/numbers/3.png",
|
||||
"https://cdn.nadeko.bot/other/slots/numbers/4.png",
|
||||
"https://cdn.nadeko.bot/other/slots/numbers/5.png",
|
||||
"https://cdn.nadeko.bot/other/slots/numbers/6.png",
|
||||
"https://cdn.nadeko.bot/other/slots/numbers/7.png",
|
||||
"https://cdn.nadeko.bot/other/slots/numbers/8.png",
|
||||
"https://cdn.nadeko.bot/other/slots/numbers/9.png"
|
||||
}.Map(x => new Uri(x)),
|
||||
}.Map(x => new Uri(x))
|
||||
},
|
||||
Xp = new ImageUrls.XpData()
|
||||
{
|
||||
@@ -183,6 +166,14 @@ namespace NadekoBot.Services
|
||||
File.WriteAllText(_imagesPath, Yaml.Serializer.Serialize(newData));
|
||||
}
|
||||
}
|
||||
|
||||
// removed numbers from slots
|
||||
var localImageUrls = Yaml.Deserializer.Deserialize<ImageUrls>(File.ReadAllText(_imagesPath));
|
||||
if (localImageUrls.Version == 2)
|
||||
{
|
||||
localImageUrls.Version = 3;
|
||||
File.WriteAllText(_imagesPath, Yaml.Serializer.Serialize(localImageUrls));
|
||||
}
|
||||
}
|
||||
|
||||
public async Task Reload()
|
||||
@@ -207,9 +198,6 @@ namespace NadekoBot.Services
|
||||
case ImageKeys.SlotEmojis:
|
||||
await Load(key, ImageUrls.Slots.Emojis);
|
||||
break;
|
||||
case ImageKeys.SlotNumbers:
|
||||
await Load(key, ImageUrls.Slots.Numbers);
|
||||
break;
|
||||
case ImageKeys.Currency:
|
||||
await Load(key, ImageUrls.Currency);
|
||||
break;
|
||||
|
@@ -1,5 +1,5 @@
|
||||
# DO NOT CHANGE
|
||||
version: 2
|
||||
version: 3
|
||||
coins:
|
||||
heads:
|
||||
- https://cdn.nadeko.bot/coins/heads3.png
|
||||
@@ -36,15 +36,4 @@ slots:
|
||||
- https://cdn.nadeko.bot/slots/3.png
|
||||
- https://cdn.nadeko.bot/slots/4.png
|
||||
- https://cdn.nadeko.bot/slots/5.png
|
||||
numbers:
|
||||
- https://cdn.nadeko.bot/other/slots/numbers/0.png
|
||||
- https://cdn.nadeko.bot/other/slots/numbers/1.png
|
||||
- https://cdn.nadeko.bot/other/slots/numbers/2.png
|
||||
- https://cdn.nadeko.bot/other/slots/numbers/3.png
|
||||
- https://cdn.nadeko.bot/other/slots/numbers/4.png
|
||||
- https://cdn.nadeko.bot/other/slots/numbers/5.png
|
||||
- https://cdn.nadeko.bot/other/slots/numbers/6.png
|
||||
- https://cdn.nadeko.bot/other/slots/numbers/7.png
|
||||
- https://cdn.nadeko.bot/other/slots/numbers/8.png
|
||||
- https://cdn.nadeko.bot/other/slots/numbers/9.png
|
||||
bg: https://cdn.nadeko.bot/slots/slots_bg.png
|
||||
|
Reference in New Issue
Block a user