Files
nadekobot/src/NadekoBot/Services/Impl/RedisImageExtensions.cs
2021-12-19 05:14:11 +01:00

10 lines
333 B
C#

namespace NadekoBot.Services;
public static class RedisImageExtensions
{
private const string OldCdnUrl = "nadeko-pictures.nyc3.digitaloceanspaces.com";
private const string NewCdnUrl = "cdn.nadeko.bot";
public static Uri ToNewCdn(this Uri uri)
=> new(uri.ToString().Replace(OldCdnUrl, NewCdnUrl));
}